GdkModifierType

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.types.ModifierType.ModifierMask to remove all private values.

Values

ValueMeaning
NoModifierMask0

No modifier.

ShiftMask1

the Shift key.

LockMask2

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

ControlMask4

the Control key.

AltMask8

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).

Button1Mask256

the first mouse button.

Button2Mask512

the second mouse button.

Button3Mask1024

the third mouse button.

Button4Mask2048

the fourth mouse button.

Button5Mask4096

the fifth mouse button.

SuperMask67108864

the Super modifier

HyperMask134217728

the Hyper modifier

MetaMask268435456

the Meta modifier