Defined in: useHotkeyRecorder.ts:14
THotkey extends Hotkey = Hotkey
cancelRecording: () => void;Defined in: useHotkeyRecorder.ts:26
Cancel recording and call onCancel
void
commitRecording: () => void;Defined in: useHotkeyRecorder.ts:28
Commit the recorded steps now (multi-step recordings)
void
isRecording: boolean;Defined in: useHotkeyRecorder.ts:16
Whether recording is currently active
recordedHotkey: THotkey | null;Defined in: useHotkeyRecorder.ts:20
The last committed hotkey
startRecording: () => void;Defined in: useHotkeyRecorder.ts:22
Start recording a new hotkey
void
steps: HotkeySequence;Defined in: useHotkeyRecorder.ts:18
Chords recorded so far in a multi-step recording (for live preview)
stopRecording: () => void;Defined in: useHotkeyRecorder.ts:24
Stop recording without calling onCancel
void