Enum ModifierMask
Represents a virtual modifier mask.
[Flags]
public enum ModifierMask : ushort
- Extension Methods
Fields
Alt = LeftAlt | RightAlt
Left or right Alt (on Windows and Linux) or Option (on macOS)
Button1 = 256
Mouse button 1 (usually the left mouse button)
Button2 = 512
Mouse button 2 (usually the right mouse button)
Button3 = 1024
Mouse button 3
Button4 = 2048
Mouse button 4
Button5 = 4096
Mouse button 5
CapsLock = 16384
Caps Lock
Ctrl = LeftCtrl | RightCtrl
Left or right Control
LeftAlt = 8
Left Alt (on Windows and Linux) or Option (on macOS)
LeftCtrl = 2
Left Control
LeftMeta = 4
Left Win (on Windows), Command (on macOS), or Super/Meta (on Linux)
LeftShift = 1
Left Shift
Meta = LeftMeta | RightMeta
Left or right Win (on Windows), Command (on macOS), or Super/Meta (on Linux)
None = 0
No modifier
NumLock = 8192
Num Lock
RightAlt = 128
Right Alt (on Windows and Linux) or Option (on macOS)
RightCtrl = 32
Right Control
RightMeta = 64
Right Win (on Windows), Command (on macOS), or Super/Meta (on Linux)
RightShift = 16
Right Shift
ScrollLock = 32768
Scroll Lock
Shift = LeftShift | RightShift
Left or right Shift