Skip to content

ShortcutInfo

ShortcutInfo = object

Defined in: types.ts:75

A registered shortcut, as listed by shortcuts().

active: boolean

Defined in: types.ts:87

Whether the shortcut’s context is active, so the shortcut works right now.


context: string

Defined in: types.ts:83


optional description?: string

Defined in: types.ts:85


keys: string[]

Defined in: types.ts:82

Canonical key names for this platform, modifiers first: ['meta', 'k'] on macOS, ['control', 'k'] elsewhere. Wildcards stay as written, e.g. 'arrow*'.


phases: Phase[]

Defined in: types.ts:84


shortcut: string

Defined in: types.ts:77

The shortcut as passed to listen(), e.g. 'ControlOrMeta+K'.