Skip to content

HotkeyManager.getHotkeys method

HotkeyManager › getHotkeys

Unofficial

Get hotkey associated with command ID.

Signature:

getHotkeys(command: string): KeymapInfo[]

Parameters:

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

Returns: KeymapInfo[]The hotkeys for the command.