Defined in: hotkey-recorder.ts:19
Options for configuring a HotkeyRecorder instance.
optional onCancel: () => void;
Defined in: hotkey-recorder.ts:23
Optional callback when recording is cancelled (Escape pressed)
void
optional onClear: () => void;
Defined in: hotkey-recorder.ts:25
Optional callback when shortcut is cleared (Backspace/Delete pressed)
void
onRecord: (hotkey) => void;
Defined in: hotkey-recorder.ts:21
Callback when a hotkey is successfully recorded
void