type HotkeyCallback = (event, context) => void;
Defined in: hotkey.ts:408
Callback function type for hotkey handlers.
KeyboardEvent
The keyboard event that triggered the hotkey
Additional context including the hotkey and parsed hotkey
void
const handler: HotkeyCallback = (event, { hotkey, parsedHotkey }) => {
console.log(`Hotkey ${hotkey} was pressed`)
console.log(`Modifiers:`, parsedHotkey.modifiers)
}