TanStack
Hotkeys API Reference

HotkeySequenceRegistrationView

Defined in: hotkey-manager.ts:319

Public view of a sequence registration, without its callback.

Extends

  • RegistrationViewBase

Properties

alternateOf?

ts
optional alternateOf?: string;

Defined in: hotkey-manager.ts:302

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
RegistrationViewBase.alternateOf

hasFired

ts
hasFired: boolean;

Defined in: hotkey-manager.ts:291

Inherited from

ts
RegistrationViewBase.hasFired

hotkey

ts
hotkey: HotkeySequence;

Defined in: hotkey-manager.ts:321


id

ts
id: string;

Defined in: hotkey-manager.ts:286

Inherited from

ts
RegistrationViewBase.id

kind

ts
kind: "sequence";

Defined in: hotkey-manager.ts:320


matchedStepCount

ts
matchedStepCount: number;

Defined in: hotkey-manager.ts:325

Steps matched in the current attempt (0 when idle or just completed).


options

ts
options: HotkeySequenceOptions;

Defined in: hotkey-manager.ts:323


parsedSequence

ts
parsedSequence: ParsedHotkeyChord[];

Defined in: hotkey-manager.ts:322


partialMatchLastKeyTime

ts
partialMatchLastKeyTime: number;

Defined in: hotkey-manager.ts:327

Date.now() when the last step in the current attempt matched; 0 if none.


platformHotkeys?

ts
optional platformHotkeys?: PlatformHotkeys;

Defined in: hotkey-manager.ts:296

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

Inherited from

ts
RegistrationViewBase.platformHotkeys

status

ts
status: HotkeyRegistrationStatus;

Defined in: hotkey-manager.ts:288

Whether the registration is enabled and in an active scope.

Inherited from

ts
RegistrationViewBase.status

target

ts
target: Target;

Defined in: hotkey-manager.ts:289

Inherited from

ts
RegistrationViewBase.target

trigger

ts
trigger: (event?) => boolean;

Defined in: hotkey-manager.ts:307

Runs the registration's callback, as for a command palette entry. See HotkeyManager.trigger.

Parameters

event?

KeyboardEvent

Returns

boolean

Inherited from

ts
RegistrationViewBase.trigger

triggerCount

ts
triggerCount: number;

Defined in: hotkey-manager.ts:290

Inherited from

ts
RegistrationViewBase.triggerCount