Gdk.ModifierType Enumeration
An enum 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.

Syntax

[GLib.GType(typeof(Gdk.ModifierTypeGType))]
[System.Flags]
public enum ModifierType

Remarks

None.

Members

Member NameDescription
ShiftMaskThe Shift key.
LockMaskA Lock Key (depending on the modifier mapping of the X server this may either be CapsLock or ShiftLock).
ControlMaskThe Control key.
Mod1MaskThe fourth modifier key (it depends on the modifier mapping of the X server which key is interpreted as this modifer, but normally it is the Alt key).
Mod2MaskThe fifth modifier key (it depends on the modifier mapping of the X server which key is interpreted as this modifier).
Mod3MaskThe sixth modifier key (it depends on the modifier mapping of the X server which key is interpreted as this modifier).
Mod4MaskThe seventh modifier key (it depends on the modifier mapping of the X server which key is interpreted as this modifier).
Mod5MaskThe eighth modifier key (it depends on the modifier mapping of the X servier which key is interpreted as this modifier).
Button1MaskThe first mouse button.
Button2MaskThe second mouse button.
Button3MaskThe third mouse button.
Button4MaskThe fourth mouse button.
Button5MaskThe fifth mouse button.
ReleaseMaskNot used in GDK itself. GTK+ uses it to differentiate between (keyval, modifiers) pairs from key press and release events.
ModifierMaskA mask covering all modifier types.
NoneNo modifiers present.
MetaMaskMeta key modifier.
SuperMaskSuper key modifier.
HyperMaskHyper key modifier.

Requirements

Namespace: Gdk
Assembly: gdk-sharp (in gdk-sharp.dll)
Assembly Versions: 2.12.0.0