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
Hotkeys API Reference
App Hotkeys API Reference
Key hold & held keys API Reference
Hotkey Recorder API Reference
Normalization & format API Reference

HotkeySequenceRegistration

Defined in: hotkey-manager.ts:163

A registered sequence in the HotkeyManager.

Extends

Properties

callback

ts
callback: HotkeyCallback;
callback: HotkeyCallback;

Defined in: hotkey-manager.ts:142

The callback to invoke

Inherited from

ts
RegistrationBase.callback
RegistrationBase.callback

currentIndex

ts
currentIndex: number;
currentIndex: number;

Defined in: hotkey-manager.ts:168

Steps matched in the current attempt


hasFired

ts
hasFired: boolean;
hasFired: boolean;

Defined in: hotkey-manager.ts:150

Whether this registration has fired (and, for requireReset chords, needs a reset)

Inherited from

ts
RegistrationBase.hasFired
RegistrationBase.hasFired

hotkey

ts
hotkey: HotkeySequence;
hotkey: HotkeySequence;

Defined in: hotkey-manager.ts:165


id

ts
id: string;
id: string;

Defined in: hotkey-manager.ts:140

Unique identifier for this registration

Inherited from

ts
RegistrationBase.id
RegistrationBase.id

kind

ts
kind: "sequence";
kind: "sequence";

Defined in: hotkey-manager.ts:164


lastKeyTime

ts
lastKeyTime: number;
lastKeyTime: number;

Defined in: hotkey-manager.ts:170

Date.now() when the last step in the current attempt matched


options

ts
options: HotkeySequenceOptions;
options: HotkeySequenceOptions;

Defined in: hotkey-manager.ts:144

Resolved options for this registration

Inherited from

ts
RegistrationBase.options
RegistrationBase.options

parsedSequence

ts
parsedSequence: ParsedHotkeyChord[];
parsedSequence: ParsedHotkeyChord[];

Defined in: hotkey-manager.ts:166


target

ts
target: Target;
target: Target;

Defined in: hotkey-manager.ts:146

The resolved target element for this registration

Inherited from

ts
RegistrationBase.target
RegistrationBase.target

triggerCount

ts
triggerCount: number;
triggerCount: number;

Defined in: hotkey-manager.ts:148

How many times this registration's callback has been triggered

Inherited from

ts
RegistrationBase.triggerCount
RegistrationBase.triggerCount