Skip to content

HotkeyManager.addDefaultHotkeys method

HotkeyManager › addDefaultHotkeys

Unofficial

Add a hotkey to the default hotkeys.

Signature:

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

Parameters:

Parameter Type Description
command string {@link obsidian#Command} ID to add hotkey to.
keys KeymapInfo[] Hotkeys to add.

Returns: void