Defined in: sequence-manager.ts:168
readonly registrations: Store<Map<string, SequenceRegistrationView>>;
Defined in: sequence-manager.ts:175
The TanStack Store containing sequence registration views for devtools. Subscribe to this to observe registration changes.
destroy(): void;
Defined in: sequence-manager.ts:634
Destroys the manager and removes all listeners.
void
getRegistrationCount(): number;
Defined in: sequence-manager.ts:627
Gets the number of registered sequences.
number
register(
sequence,
callback,
options): SequenceRegistrationHandle;
Defined in: sequence-manager.ts:227
Registers a hotkey sequence handler.
Array of hotkey strings that form the sequence
Function to call when the sequence is completed
SequenceOptions = {}
Options for the sequence behavior
A handle to update or unregister the sequence
resetAll(): void;
Defined in: sequence-manager.ts:570
Resets all sequence progress.
void
triggerSequence(id): boolean;
Defined in: sequence-manager.ts:585
Triggers a sequence's callback programmatically from devtools. Creates a synthetic KeyboardEvent from the last key in the sequence.
string
The registration ID to trigger
boolean
True if the registration was found and triggered
static getInstance(): SequenceManager;
Defined in: sequence-manager.ts:196
Gets the singleton instance of SequenceManager.
SequenceManager
static resetInstance(): void;
Defined in: sequence-manager.ts:206
Resets the singleton instance. Useful for testing.
void