Options
All
  • Public
  • Public/Protected
  • All
Menu

Enumeration KeyModifier

Index

Enumeration members

Variables

Functions

Enumeration members

Alt

Alt: = "M3"

M3 is the Option key on MacOS X, and the ALT key on most other platforms.

CtrlCmd

CtrlCmd: = "M1"

M1 is the COMMAND key on MacOS X, and the CTRL key on most other platforms.

MacCtrl

MacCtrl: = "M4"

M4 is the CTRL key on MacOS X, and is undefined on other platforms.

Shift

Shift: = "M2"

M2 is the SHIFT key.

Variables

Const CTRL

CTRL: MacCtrl | CtrlCmd = isOSX ? KeyModifier.MacCtrl : KeyModifier.CtrlCmd

The CTRL key, independently of the platform. Note: In general KeyModifier.CtrlCmd should be preferred over this constant.

Const SHIFT

SHIFT: Shift = KeyModifier.Shift

An alias for the SHIFT key (KeyModifier.Shift).

Functions

isModifier

  • isModifier(key: string | undefined): boolean