Skip to content

HotkeyManager.getDefaultHotkeys method

HotkeyManager › getDefaultHotkeys

Unofficial

Get hotkey associated with command ID.

Signature:

getDefaultHotkeys(command: string): Hotkey[] | undefined

Parameters:

ParameterTypeDescription
commandstring{@link obsidian#Command} ID to get hotkey for.

Returns: Hotkey[] | undefined — The default hotkeys for the command, or undefined if it has none.