ModifierType


Description:

[ Flags ]
public enum ModifierType

A set of bit-flags to indicate the state of modifier keys and mouse buttons in various event types.

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

Like the X Window System, GDK supports 8 modifier keys and 5 mouse buttons.

Since 2.10, GDK recognizes which of the Meta, Super or Hyper keys are mapped to Mod2 - Mod5, and indicates this by setting gdk_super_mask, gdk_hyper_mask or gdk_meta_mask in the state field of key events.

Note that GDK may add internal values to events which include reserved values such as gdk_modifier_reserved_13_mask . Your code should preserve and ignore them. You can use gdk_modifier_mask to remove all reserved values.

Also note that the GDK X backend interprets button press events for button 4-7 as scroll events, so gdk_button4_mask and gdk_button5_mask will never be set.


Namespace: Gdk
Package: gdk-3.0

Content:

Enum values: