Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
API Reference
Hotkeys API Reference
Hotkey Sequence API Reference
Key Hold API Reference
Held Keys API Reference
Hotkey Recorder API Reference
Hotkey Sequence Recorder API Reference
Format for Display API Reference
Hotkey Sequence API Reference

SequenceManager

Class: SequenceManager

Defined in: sequence-manager.ts:168

Properties

registrations

ts
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.

Methods

destroy()

ts
destroy(): void;

Defined in: sequence-manager.ts:634

Destroys the manager and removes all listeners.

Returns

void


getRegistrationCount()

ts
getRegistrationCount(): number;

Defined in: sequence-manager.ts:627

Gets the number of registered sequences.

Returns

number


register()

ts
register(
   sequence, 
   callback, 
   options): SequenceRegistrationHandle;

Defined in: sequence-manager.ts:227

Registers a hotkey sequence handler.

Parameters

sequence

HotkeySequence

Array of hotkey strings that form the sequence

callback

HotkeyCallback

Function to call when the sequence is completed

options

SequenceOptions = {}

Options for the sequence behavior

Returns

SequenceRegistrationHandle

A handle to update or unregister the sequence


resetAll()

ts
resetAll(): void;

Defined in: sequence-manager.ts:570

Resets all sequence progress.

Returns

void


triggerSequence()

ts
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.

Parameters

id

string

The registration ID to trigger

Returns

boolean

True if the registration was found and triggered


getInstance()

ts
static getInstance(): SequenceManager;

Defined in: sequence-manager.ts:196

Gets the singleton instance of SequenceManager.

Returns

SequenceManager


resetInstance()

ts
static resetInstance(): void;

Defined in: sequence-manager.ts:206

Resets the singleton instance. Useful for testing.

Returns

void