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

Enumeration Members

ALT_MASK: number

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: 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 Windowing System configuration, this may either be CapsLock or ShiftLock).

META_MASK: number

the Meta modifier. Maps to Command on macOS.

NO_MODIFIER_MASK: number

No modifier.

SHIFT_MASK: number

the Shift key.

SUPER_MASK: number

the Super modifier.