Skip to main content

Interface: Shortcut

Defined in: src/lib/utils/shortcuts/index.ts:46

A key combination and the action it runs

Extends​

Properties​

action​

action: ShortcutAction

Defined in: src/lib/utils/shortcuts/index.ts:47


alt?​

optional alt?: boolean

Defined in: src/lib/utils/shortcuts/index.ts:42

Inherited from​

KeyCombo.alt


cmd?​

optional cmd?: boolean

Defined in: src/lib/utils/shortcuts/index.ts:39

Inherited from​

KeyCombo.cmd


ctrl?​

optional ctrl?: boolean

Defined in: src/lib/utils/shortcuts/index.ts:40

Inherited from​

KeyCombo.ctrl


key​

key: string

Defined in: src/lib/utils/shortcuts/index.ts:38

Lowercase KeyboardEvent.key value, e.g. a, [, backspace or (Space)

Inherited from​

KeyCombo.key


shift?​

optional shift?: boolean

Defined in: src/lib/utils/shortcuts/index.ts:41

Inherited from​

KeyCombo.shift