Skip to content

Shortcuts

ShortcutsSDK

ShortcutsSDK = object

Utilities to interact with shortcuts.

Properties

register()

register: (commandId: CommandID, keys: string[]) => void

Register a shortcut.

Parameters
ParameterTypeDescription
commandIdCommandIDThe id of the command to run when the shortcut is triggered.
keysstring[]The keys of the shortcut. Check out KeyboardEvent.key for the list of supported keys.
Returns

void