Access via:
io.hotkeysAPIinterface
Hotkeys API.
4 Methods
isRegistered()⚓︎
(hotkey: string) => boolean
Whether the current app has registered a hotkey.
Parameters (1)
| Name | Type | Required | Description |
|---|---|---|---|
| hotkey⚓︎ | string | The name of the hotkey you want to check. |
register()⚓︎
(hotkey: string | HotkeyInfo, callback: HotkeyCallback) => Promise<void>
Registers a hotkey. All registered hotkeys within the framework must be unique.
Parameters (2)
| Name | Type | Required | Description |
|---|---|---|---|
| hotkey⚓︎ | string | HotkeyInfo | The key or key combination (as a string or as a |
|
| callback⚓︎ | HotkeyCallback | Callback function that will be invoked when the hotkey is activated. |