Defined in: hotkey-recorder.ts:117
Options for recording up to maxSteps chords. A one-step recording commits as a chord string; two or more steps commit as a sequence.
optional commitKeys?: HotkeyRecorderCommitKeys;optional commitKeys?: HotkeyRecorderCommitKeys;Defined in: hotkey-recorder.ts:128
Whether plain Enter commits the recorded steps. Default: 'enter'
optional detectConflicts?: boolean | HotkeyConflictOptions;optional detectConflicts?: boolean | HotkeyConflictOptions;Defined in: hotkey-recorder.ts:39
Opt in to live-registry conflicts, including sequence prefixes. Default: false.
HotkeyRecorderBaseOptions.detectConflictsHotkeyRecorderBaseOptions.detectConflictsoptional idleTimeoutMs?: number;optional idleTimeoutMs?: number;Defined in: hotkey-recorder.ts:130
Commit automatically after this many milliseconds without a new step. Disabled when unset or 0.
optional ignoreInputs?: boolean;optional ignoreInputs?: boolean;Defined in: hotkey-recorder.ts:97
Whether to ignore keyboard events from input-like elements (text inputs, textarea, select, contenteditable) while recording. When true, typing in inputs passes through normally (Escape still cancels). Defaults to true.
HotkeyRecorderBaseOptions.ignoreInputsHotkeyRecorderBaseOptions.ignoreInputsmaxSteps: number;maxSteps: number;Defined in: hotkey-recorder.ts:119
Maximum number of chords to record. Reaching it commits automatically. Use Infinity for no limit.
optional onCancel?: () => void;optional onCancel?: () => void;Defined in: hotkey-recorder.ts:86
Optional callback when recording is cancelled (Escape pressed)
void
HotkeyRecorderBaseOptions.onCancelHotkeyRecorderBaseOptions.onCanceloptional onClear?: () => void;optional onClear?: () => void;Defined in: hotkey-recorder.ts:91
Optional callback when the recording is cleared: Backspace/Delete with no modifiers and no recorded steps
void
HotkeyRecorderBaseOptions.onClearHotkeyRecorderBaseOptions.onClearonRecord: (hotkey) => void;onRecord: (hotkey) => void;Defined in: hotkey-recorder.ts:126
Callback when a hotkey is successfully recorded
void
optional onReject?: (rejection) => void;optional onReject?: (rejection) => void;Defined in: hotkey-recorder.ts:41
Rejected candidates leave recording active.
void
HotkeyRecorderBaseOptions.onRejectHotkeyRecorderBaseOptions.onRejectoptional platform?: "mac" | "windows" | "linux";optional platform?: "mac" | "windows" | "linux";Defined in: hotkey-recorder.ts:37
Platform used for Mod and AltGraph handling. Defaults to platform detection.
HotkeyRecorderBaseOptions.platformHotkeyRecorderBaseOptions.platformoptional recordBy?: RecorderKeyMode;optional recordBy?: RecorderKeyMode;Defined in: hotkey-recorder.ts:35
Physical code recording is the default. Choose key to record logical characters.
HotkeyRecorderBaseOptions.recordByHotkeyRecorderBaseOptions.recordByoptional validate?: (hotkey, context) => string | boolean;optional validate?: (hotkey, context) => string | boolean;Defined in: hotkey-recorder.ts:121
Return true to accept, or false/a message to reject while staying in recording mode.
HotkeyRecorderValidationContext
string | boolean