Skip to main content

AlpineHotkeySequenceRecorder

还没翻译译自英文(tanstack.com)本页 33 段都还没译

Defined in: types.ts:40

Sequence recording state and controls.

Properties

cancelRecording

cancelRecording: () => void;

Defined in: types.ts:52

Discard the current session and call onCancel.

Returns

void


commitRecording

commitRecording: () => void;

Defined in: types.ts:54

Commit the current steps. Does nothing when no steps are recorded.

Returns

void


isRecording

readonly isRecording: boolean;

Defined in: types.ts:42

Whether the recorder is listening for chords.


recordedSequence

readonly recordedSequence: HotkeySequence | null;

Defined in: types.ts:46

The last committed sequence.


startRecording

startRecording: () => void;

Defined in: types.ts:48

Start a new recording session.

Returns

void


steps

readonly steps: HotkeySequence;

Defined in: types.ts:44

Chords captured in the current session.


stopRecording

stopRecording: () => void;

Defined in: types.ts:50

Stop without committing or calling onCancel.

Returns

void