Enum ModifierKey
Identifies a specific modifier key for standalone modifier key events.
public enum ModifierKey
- Extension Methods
Fields
Alt = 7Alt (side not distinguished).
AltGr = 10AltGr / ISO Level 3 Shift.
CapsLock = 17Caps Lock.
Ctrl = 4Ctrl (side not distinguished).
Hyper = 14Hyper key (side not distinguished).
LeftAlt = 8Left Alt.
LeftCtrl = 5Left Ctrl.
LeftHyper = 15Left Hyper key.
LeftShift = 2Left Shift.
LeftSuper = 12Left Super / Windows / Cmd key.
None = 0Not a modifier key event.
NumLock = 18Num Lock.
RightAlt = 9Right Alt.
RightCtrl = 6Right Ctrl.
RightHyper = 16Right Hyper key.
RightShift = 3Right Shift.
RightSuper = 13Right Super / Windows / Cmd key.
ScrollLock = 19Scroll Lock.
Shift = 1Shift (side not distinguished).
Super = 11Super / Windows / Cmd key (side not distinguished).
Remarks
Used by ModifierKey to indicate which modifier key was pressed or released as a standalone event (e.g., pressing Shift alone without any other key).
Not all drivers distinguish left from right modifier keys. When the driver cannot distinguish, the non-sided variant (e.g., Shift) is used.