Defined in: useHotkeyRecorder.ts:17
THotkey extends Hotkey = Hotkey
cancelRecording: () => void;Defined in: useHotkeyRecorder.ts:29
Cancel recording and call onCancel
void
commitRecording: () => void;Defined in: useHotkeyRecorder.ts:31
Commit the recorded steps now (multi-step recordings)
void
isRecording: boolean;Defined in: useHotkeyRecorder.ts:19
Whether recording is currently active
recordedHotkey: THotkey | null;Defined in: useHotkeyRecorder.ts:23
The last committed hotkey
startRecording: () => void;Defined in: useHotkeyRecorder.ts:25
Start recording a new hotkey
void
steps: HotkeySequence;Defined in: useHotkeyRecorder.ts:21
Chords recorded so far in a multi-step recording (for live preview)
stopRecording: () => void;Defined in: useHotkeyRecorder.ts:27
Stop recording without calling onCancel
void