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 & held keys API Reference
Hotkey Recorder API Reference
Hotkey Sequence Recorder API Reference
Normalization & format API Reference
Hotkey Sequence API Reference

SequenceRegistrationHandle

Interface: SequenceRegistrationHandle

Defined in: sequence-manager.ts:119

A handle returned from SequenceManager.register() that allows updating the callback and options without re-registering the sequence.

Example

ts
const handle = manager.register(['G', 'G'], callback, options)

handle.callback = newCallback
handle.setOptions({ timeout: 500 })
handle.unregister()

Properties

callback

ts
callback: HotkeyCallback;

Defined in: sequence-manager.ts:122


id

ts
readonly id: string;

Defined in: sequence-manager.ts:120


isActive

ts
readonly isActive: boolean;

Defined in: sequence-manager.ts:121


setOptions()

ts
setOptions: (options) => void;

Defined in: sequence-manager.ts:123

Parameters

options

Partial<SequenceOptions>

Returns

void


unregister()

ts
unregister: () => void;

Defined in: sequence-manager.ts:124

Returns

void