Shortcuts
ShortcutsSDK
ShortcutsSDK =
object
Utilities to interact with shortcuts.
Properties
register()
register: (
commandId:CommandID,keys:string[]) =>void
Register a shortcut.
Parameters
| Parameter | Type | Description |
|---|---|---|
commandId | CommandID | The id of the command to run when the shortcut is triggered. |
keys | string[] | The keys of the shortcut. Check out KeyboardEvent.key for the list of supported keys. |
Returns
void
