Skip to content
Source
Sign inSign up
TanStack/hotkeys
Open History to see the last commit

KeyStateTrackerState.md

33 lines833 Bytes

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

State interface for the KeyStateTracker.

Properties

heldCodes

heldCodes: Record<string, string>;

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

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


heldKeys

heldKeys: string[];

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

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