Skip to content

HotkeyManager.addDefaultHotkeys method

HotkeyManager › addDefaultHotkeys

Unofficial

Add a hotkey to the default hotkeys.

Signature:

addDefaultHotkeys(command: string, keys: KeymapInfo[]): void

Parameters:

ParameterTypeDescription
commandstring{@link obsidian#Command} ID to add hotkey to.
keysKeymapInfo[]Hotkeys to add.

Returns: void