:right-sidebar: True ModifierType =================================================================== .. currentmodule:: gi.repository.Gdk .. class:: ModifierType :no-contents-entry: 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 :const:`~gi.repository.Gdk.MODIFIER_MASK` to remove all private values. Fields ------ .. rst-class:: interim-class .. class:: ModifierType :no-index: .. attribute:: ALT_MASK 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). .. attribute:: BUTTON1_MASK The first mouse button. .. attribute:: BUTTON2_MASK The second mouse button. .. attribute:: BUTTON3_MASK The third mouse button. .. attribute:: BUTTON4_MASK The fourth mouse button. .. attribute:: BUTTON5_MASK The fifth mouse button. .. attribute:: CONTROL_MASK The Control key. .. attribute:: HYPER_MASK The Hyper modifier .. attribute:: LOCK_MASK A Lock key (depending on the modifier mapping of the X server this may either be CapsLock or ShiftLock). .. attribute:: META_MASK The Meta modifier .. attribute:: NO_MODIFIER_MASK No modifier. .. versionadded:: 4.14 .. attribute:: SHIFT_MASK The Shift key. .. attribute:: SUPER_MASK The Super modifier