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
Extension Methods

Fields

Alt = 7

Alt (side not distinguished).

AltGr = 10

AltGr / ISO Level 3 Shift.

CapsLock = 17

Caps Lock.

Ctrl = 4

Ctrl (side not distinguished).

Hyper = 14

Hyper key (side not distinguished).

LeftAlt = 8

Left Alt.

LeftCtrl = 5

Left Ctrl.

LeftHyper = 15

Left Hyper key.

LeftShift = 2

Left Shift.

LeftSuper = 12

Left Super / Windows / Cmd key.

None = 0

Not a modifier key event.

NumLock = 18

Num Lock.

RightAlt = 9

Right Alt.

RightCtrl = 6

Right Ctrl.

RightHyper = 16

Right Hyper key.

RightShift = 3

Right Shift.

RightSuper = 13

Right Super / Windows / Cmd key.

ScrollLock = 19

Scroll Lock.

Shift = 1

Shift (side not distinguished).

Super = 11

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.