Enumeration (GI Flags)

Gdk-4.0GdkModifierType

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.

Index
ALT_MASK: 8

the fourth modifier key (it depends on the Windowing System configuration which key is interpreted as this modifier, but normally it is the Alt key).

BUTTON1_MASK: 256

the first mouse button.

BUTTON2_MASK: 512

the second mouse button.

BUTTON3_MASK: 1024

the third mouse button.

BUTTON4_MASK: 2048

the fourth mouse button.

BUTTON5_MASK: 4096

the fifth mouse button.

CONTROL_MASK: 4

the Control key.

HYPER_MASK: 134217728

the Hyper modifier.

LOCK_MASK: 2

a Lock key (depending on the Windowing System configuration, this may either be CapsLock or ShiftLock).

META_MASK: 268435456

the Meta modifier. Maps to Command on macOS.

NO_MODIFIER_MASK: 0

No modifier.

4.14

SHIFT_MASK: 1

the Shift key.

SUPER_MASK: 67108864

the Super modifier.

Variables

$gtype