Options
All
  • Public
  • Public/Protected
  • All
Menu

Definition of the shortcut key

Hierarchy

  • ShortcutKeyDefinition

Index

Properties

modifierKey

modifierKey: "alt" | "ctrl"

Modifier key for this shortcut, allowed values are: ctrl: Ctrl key (or Meta key on MacOS) alt: Alt key

shiftKey

shiftKey: boolean

Whether ALT key is required for this shortcut

which

which: number

Key code for this shortcut. The value should be the value of KeyboardEvent.which We are still using key code here rather than key name (event.key) although event.which is deprecated because of globalization. For example, on US keyboard, Shift+Comma="<" but on Spanish keyboard it is ":" And we still want the shortcut key to be registered on the same key, in that case key name is different but key code keeps the same.

Generated using TypeDoc