useHotkey API
This hook can be used to register a global hotkey. It makes use of Finsemble's HotkeyClient API.
Parameters
Parameter | Type | Summary |
---|---|---|
keyCombination | Array<string> | A hotkey combination. If null or undefined then no operation will occur. |
action | Function | The function to be called when the hotkey combination is pressed. |
useHotkey
returns void.
Usage
useHotkey(["ctrl", "alt", "shift", "r"], () => FSBL.restartApplication());