Table of Contents

Enum ModifierKey

Namespace
Terminal.Gui.Input
Assembly
Terminal.Gui.dll

Identifies a specific modifier key for standalone modifier key events.

public enum ModifierKey

Fields

Alt = 7

Alt (side not distinguished).

CapsLock = 16

Caps Lock.

Ctrl = 4

Ctrl (side not distinguished).

Hyper = 13

Hyper key (side not distinguished).

LeftAlt = 8

Left Alt.

LeftCtrl = 5

Left Ctrl.

LeftHyper = 14

Left Hyper key.

LeftShift = 2

Left Shift.

LeftSuper = 11

Left Super / Windows / Cmd key.

None = 0

Not a modifier key event.

NumLock = 17

Num Lock.

RightAlt = 9

Right Alt.

RightCtrl = 6

Right Ctrl.

RightHyper = 15

Right Hyper key.

RightShift = 3

Right Shift.

RightSuper = 12

Right Super / Windows / Cmd key.

ScrollLock = 18

Scroll Lock.

Shift = 1

Shift (side not distinguished).

Super = 10

Super / 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.