Hotkeys API Reference

HotkeyRegistrationView

Interface: HotkeyRegistrationView

Defined in: hotkey-manager.ts:81

Public view of a hotkey registration for display and introspection. Omits the callback function which is an internal implementation detail.

Properties

hasFired

ts
hasFired: boolean;

Defined in: hotkey-manager.ts:95

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


hotkey

ts
hotkey: Hotkey;

Defined in: hotkey-manager.ts:83

The original hotkey string


id

ts
id: string;

Defined in: hotkey-manager.ts:85

Unique identifier for this registration


options

ts
options: HotkeyOptions;

Defined in: hotkey-manager.ts:87

Options for this registration


parsedHotkey

ts
parsedHotkey: ParsedHotkey;

Defined in: hotkey-manager.ts:89

The parsed hotkey


target

ts
target: HTMLElement | Document | Window;

Defined in: hotkey-manager.ts:91

The resolved target element for this registration


triggerCount

ts
triggerCount: number;

Defined in: hotkey-manager.ts:93

How many times this registration's callback has been triggered