Docs
Cloudflare
CodeRabbit
Railway
AG Grid
OpenRouter
Netlify
WorkOS
SerpAPI
Clerk
Electric
Prisma
Unkey
Sentry
Cloudflare
CodeRabbit
Railway
AG Grid
OpenRouter
Netlify
WorkOS
SerpAPI
Clerk
Electric
Prisma
Unkey
Sentry
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
Key hold & held keys API Reference

KeyStateTrackerState

Interface: KeyStateTrackerState

Defined in: key-state-tracker.ts:7

State interface for the KeyStateTracker.

Properties

heldCodes

ts
heldCodes: Record<string, string>;
heldCodes: Record<string, string>;

Defined in: key-state-tracker.ts:16

Map from normalized key name to the physical (e.g. "KeyA", "ShiftLeft"). Useful for debugging which physical key was pressed.


heldKeys

ts
heldKeys: string[];
heldKeys: string[];

Defined in: key-state-tracker.ts:11

Array of currently held key names (normalized, e.g. "Control", "A").