TanStack
Hotkey Recorder API Reference

HotkeyChordRecorderValidationContext

Defined in: hotkey-recorder.ts:87

Validation context for a recorded chord.

Properties

event

ts
event: KeyboardEvent;

Defined in: hotkey-recorder.ts:90

The event that recorded the chord.


kind

ts
kind: "chord";

Defined in: hotkey-recorder.ts:88


parsedChord

ts
parsedChord: ParsedHotkeyChord;

Defined in: hotkey-recorder.ts:92

The chord with Mod resolved for the recorder's platform.


platform

ts
platform: HotkeyPlatform;

Defined in: hotkey-recorder.ts:98

The platform the chord was recorded on. Control recorded on macOS and Meta recorded elsewhere mean other keys on the other platforms, so store it with the hotkey if users sync bindings across machines.