Skip to content

HotkeyManager.setHotkeys method

HotkeyManager › setHotkeys

Unofficial

Add a hotkey to the custom hotkeys (overrides default hotkeys).

Signature:

setHotkeys(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