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
Key Hold API Reference

KeyStateTrackerState

Interface: KeyStateTrackerState

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

State interface for the KeyStateTracker.

Properties

heldCodes

ts
heldCodes: Record<string, string>;

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

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


heldKeys

ts
heldKeys: string[];

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

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