ModifierType#

class ModifierType#

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 MODIFIER_MASK to remove all private values.

Fields#

class ModifierType
ALT_MASK#

The type of the None singleton.

BUTTON1_MASK#

The type of the None singleton.

BUTTON2_MASK#

The type of the None singleton.

BUTTON3_MASK#

The type of the None singleton.

BUTTON4_MASK#

The type of the None singleton.

BUTTON5_MASK#

The type of the None singleton.

CONTROL_MASK#

The type of the None singleton.

HYPER_MASK#

The type of the None singleton.

LOCK_MASK#

The type of the None singleton.

META_MASK#

The type of the None singleton.

NO_MODIFIER_MASK#

The type of the None singleton.

Added in version 4.14.

SHIFT_MASK#

The type of the None singleton.

SUPER_MASK#

The type of the None singleton.