Skip to content
Hotkey Recorder API Reference

HotkeyRecorderState

Defined in: hotkey-recorder.ts:114

State interface for the HotkeyRecorder. Adapters narrow THotkey to the kind their recorder records.

Type Parameters

THotkey

THotkey extends Hotkey = Hotkey

Properties

isRecording

ts
isRecording: boolean;

Defined in: hotkey-recorder.ts:116

Whether recording is currently active


recordedHotkey

ts
recordedHotkey: THotkey | null;

Defined in: hotkey-recorder.ts:120

The last committed hotkey: a chord, or a sequence of two or more steps


steps

ts
steps: HotkeySequence;

Defined in: hotkey-recorder.ts:118

Chords recorded so far in a multi-step recording (empty for maxSteps: 1)