Skip to main content

OctaneHotkeySequenceRecorder

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

Defined in: types.ts:23

Sequence recording state and controls.

Properties

cancelRecording

cancelRecording: () => void;

Defined in: types.ts:35

Discard the current session and call onCancel.

Returns

void


commitRecording

commitRecording: () => void;

Defined in: types.ts:37

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

Returns

void


isRecording

isRecording: boolean;

Defined in: types.ts:25

Whether the recorder is listening for chords.


recordedSequence

recordedSequence: HotkeySequence | null;

Defined in: types.ts:29

The last committed sequence.


startRecording

startRecording: () => void;

Defined in: types.ts:31

Start a new recording session.

Returns

void


steps

steps: HotkeySequence;

Defined in: types.ts:27

Chords captured in the current session.


stopRecording

stopRecording: () => void;

Defined in: types.ts:33

Stop without committing or calling onCancel.

Returns

void