TanStack

HotkeyChordRegistration

Defined in: hotkey-manager.ts:112

A registered chord in the HotkeyManager.

Extends

Properties

activeMatch?

ts
optional activeMatch?: object;

Defined in: hotkey-manager.ts:117

The concrete key/code that activated a requireReset registration.

code

ts
code: string;

key

ts
key: string;

callback

ts
callback: HotkeyCallback;

Defined in: hotkey-manager.ts:100

The callback to invoke

Inherited from

ts
RegistrationBase.callback

hasFired

ts
hasFired: boolean;

Defined in: hotkey-manager.ts:108

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

Inherited from

ts
RegistrationBase.hasFired

hotkey

ts
hotkey: HotkeyChord;

Defined in: hotkey-manager.ts:114


id

ts
id: string;

Defined in: hotkey-manager.ts:98

Unique identifier for this registration

Inherited from

ts
RegistrationBase.id

kind

ts
kind: "chord";

Defined in: hotkey-manager.ts:113


options

ts
options: HotkeyChordOptions;

Defined in: hotkey-manager.ts:102

Resolved options for this registration

Inherited from

ts
RegistrationBase.options

parsedHotkey

ts
parsedHotkey: ParsedHotkey;

Defined in: hotkey-manager.ts:115


target

ts
target: Target;

Defined in: hotkey-manager.ts:104

The resolved target element for this registration

Inherited from

ts
RegistrationBase.target

triggerCount

ts
triggerCount: number;

Defined in: hotkey-manager.ts:106

How many times this registration's callback has been triggered

Inherited from

ts
RegistrationBase.triggerCount