Docs
CodeRabbit
Cloudflare
Railway
OpenRouter
Clerk
Netlify
WorkOS
SerpAPI
AG Grid
Unkey
Sentry
Electric
Prisma
CodeRabbit
Cloudflare
Railway
OpenRouter
Clerk
Netlify
WorkOS
SerpAPI
AG Grid
Unkey
Sentry
Electric
Prisma
API Reference
Hotkeys API Reference
Hotkey Sequence API Reference
Key hold & held keys API Reference
Hotkey Recorder API Reference
Hotkey Sequence Recorder API Reference
Normalization & format API Reference
Hotkey Sequence Recorder API Reference

HotkeySequenceRecorderOptions

Interface: HotkeySequenceRecorderOptions

Defined in: hotkey-sequence-recorder.ts:29

Options for configuring a HotkeySequenceRecorder instance.

Properties

commitKeys?

ts
optional commitKeys: HotkeySequenceRecorderCommitKeys;
optional commitKeys: HotkeySequenceRecorderCommitKeys;

Defined in: hotkey-sequence-recorder.ts:45

Keyboard commit mode. When , use HotkeySequenceRecorder.commit (and optional idle timeout).

Default

ts
'enter'
'enter'

commitOnEnter?

ts
optional commitOnEnter: boolean;
optional commitOnEnter: boolean;

Defined in: hotkey-sequence-recorder.ts:40

Whether plain Enter commits the current steps. Ignored when commitKeys is .

Default

ts
true
true

idleTimeoutMs?

ts
optional idleTimeoutMs: number;
optional idleTimeoutMs: number;

Defined in: hotkey-sequence-recorder.ts:50

Milliseconds of inactivity after the last completed chord before auto-committing. The timer does not run while waiting for the first chord ().


ignoreInputs?

ts
optional ignoreInputs: boolean;
optional ignoreInputs: boolean;

Defined in: hotkey-sequence-recorder.ts:58

Whether to ignore keyboard events from input-like elements (text inputs, textarea, select, contenteditable). When true, typing in inputs passes through normally instead of being captured as a sequence recording. Escape always works regardless of this setting.

Default

ts
true
true

onCancel()?

ts
optional onCancel: () => void;
optional onCancel: () => void;

Defined in: hotkey-sequence-recorder.ts:33

Optional callback when recording is cancelled (Escape pressed)

Returns


onClear()?

ts
optional onClear: () => void;
optional onClear: () => void;

Defined in: hotkey-sequence-recorder.ts:35

Optional callback when the sequence is cleared (Backspace/Delete with no steps)

Returns


onRecord()

ts
onRecord: (sequence) => void;
onRecord: (sequence) => void;

Defined in: hotkey-sequence-recorder.ts:31

Callback when a sequence is successfully recorded (including empty array when cleared)

Parameters

sequence

Returns