Defined in: types.ts:11
Recording state and controls owned by the containing component.
THotkey extends Hotkey = Hotkey
cancelRecording: () => void;Defined in: types.ts:23
Stop, clear recorder state, and call onCancel.
void
commitRecording: () => void;Defined in: types.ts:25
Commit the current steps (multi-step recordings).
void
isRecording: boolean;Defined in: types.ts:13
Whether the recorder is listening for a shortcut.
recordedHotkey: THotkey | null;Defined in: types.ts:17
The last committed hotkey, including brackets for physical codes.
startRecording: () => void;Defined in: types.ts:19
Start a new recording session.
void
steps: HotkeySequence;Defined in: types.ts:15
Chords captured so far in a multi-step recording.
stopRecording: () => void;Defined in: types.ts:21
Stop and clear recorder state without calling onRecord or onCancel.
void