Enum ModifierKey
Identifies a specific modifier key for standalone modifier key events.
public enum ModifierKey
Fields
Alt = 7Alt (side not distinguished).
CapsLock = 16Caps Lock.
Ctrl = 4Ctrl (side not distinguished).
Hyper = 13Hyper key (side not distinguished).
LeftAlt = 8Left Alt.
LeftCtrl = 5Left Ctrl.
LeftHyper = 14Left Hyper key.
LeftShift = 2Left Shift.
LeftSuper = 11Left Super / Windows / Cmd key.
None = 0Not a modifier key event.
NumLock = 17Num Lock.
RightAlt = 9Right Alt.
RightCtrl = 6Right Ctrl.
RightHyper = 15Right Hyper key.
RightShift = 3Right Shift.
RightSuper = 12Right Super / Windows / Cmd key.
ScrollLock = 18Scroll Lock.
Shift = 1Shift (side not distinguished).
Super = 10Super / 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.