TanStack

HotkeyChordRegistration

Defined in: hotkey-manager.ts:251

A registered chord in the HotkeyManager.

Extends

Properties

activeMatch?

ts
optional activeMatch?: KeyIdentity;

Defined in: hotkey-manager.ts:256

The concrete key/code that activated a requireReset registration.


alternateOf?

ts
optional alternateOf?: string;

Defined in: hotkey-manager.ts:247

For a further registration of platformHotkeys, the id of the first hotkey of the same call that registered. The first one has none. Group a list by alternateOf ?? id to get the registrations of one call.

Inherited from

ts
RegistrationBase.alternateOf

callback

ts
callback: HotkeyCallback;

Defined in: hotkey-manager.ts:228

The callback to invoke

Inherited from

ts
RegistrationBase.callback

hasFired

ts
hasFired: boolean;

Defined in: hotkey-manager.ts:236

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:253


id

ts
id: string;

Defined in: hotkey-manager.ts:226

Unique identifier for this registration

Inherited from

ts
RegistrationBase.id

kind

ts
kind: "chord";

Defined in: hotkey-manager.ts:252


options

ts
options: HotkeyChordOptions;

Defined in: hotkey-manager.ts:230

Resolved options for this registration

Inherited from

ts
RegistrationBase.options

parsedChord

ts
parsedChord: ParsedHotkeyChord;

Defined in: hotkey-manager.ts:254


platformHotkeys?

ts
optional platformHotkeys?: PlatformHotkeys;

Defined in: hotkey-manager.ts:241

The hotkey object this was registered with, if any. hotkey is its entry for this platform, or one of its alternates.

Inherited from

ts
RegistrationBase.platformHotkeys

target

ts
target: Target;

Defined in: hotkey-manager.ts:232

The resolved target element for this registration

Inherited from

ts
RegistrationBase.target

triggerCount

ts
triggerCount: number;

Defined in: hotkey-manager.ts:234

How many times this registration's callback has been triggered

Inherited from

ts
RegistrationBase.triggerCount