Gjsify LogoGjsify Logo

Flags to indicate the state of modifier keys and mouse buttons in events.

Typical modifier keys are Shift, Control, Meta, Super, Hyper, Alt, Compose, Apple, CapsLock or ShiftLock.

Note that GDK may add internal values to events which include values outside of this enumeration. Your code should preserve and ignore them. You can use %GDK_MODIFIER_MASK to remove all private values.

bitfield

Index

Enumeration Members

ALT_MASK: number

the fourth modifier key (it depends on the modifier mapping of the X server which key is interpreted as this modifier, but normally it is the Alt key).

BUTTON1_MASK: number

the first mouse button.

BUTTON2_MASK: number

the second mouse button.

BUTTON3_MASK: number

the third mouse button.

BUTTON4_MASK: number

the fourth mouse button.

BUTTON5_MASK: number

the fifth mouse button.

CONTROL_MASK: number

the Control key.

HYPER_MASK: number

the Hyper modifier

LOCK_MASK: number

a Lock key (depending on the modifier mapping of the X server this may either be CapsLock or ShiftLock).

META_MASK: number

the Meta modifier

SHIFT_MASK: number

the Shift key.

SUPER_MASK: number

the Super modifier

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method