Skip to main content

foundation-utils.shortcutdefinition

Home > @genesislcap/foundation-utils > ShortcutDefinition

ShortcutDefinition interface​

A definition of a keyboard shortcut

Signature:

export interface ShortcutDefinition 

Properties​

Property

Modifiers

Type

Description

action

() => void

altKey?

boolean

(Optional)

canExecute?

() => ShortcutExecutionStatus

(Optional)

context

string

ctrlKey?

boolean

(Optional)

description

string

elementRef?

HTMLElement

(Optional)

id

string

key

string

metaKey?

boolean

(Optional)

optionKey?

boolean

(Optional)

priority?

number

(Optional)

shiftKey?

boolean

(Optional)