Class Key
The
Key enumeration contains special encoding for some keys, but can also
encode all the unicode values that can be passed.
Inheritance
System.Object
Key
Assembly: Terminal.Gui.dll
Syntax
public sealed class Key : Enum
Fields
a
Declaration
Field Value
A
The key code for the user pressing A
Declaration
Field Value
AltMask
When this value is set, the Key encodes the sequence Alt-KeyValue.
And the actual value must be extracted by removing the AltMask.
Declaration
Field Value
b
Declaration
Field Value
B
The key code for the user pressing B
Declaration
Field Value
Backspace
Backspace key.
Declaration
public const Key Backspace
Field Value
BackTab
Shift-tab key (backwards tab key).
Declaration
Field Value
c
Declaration
Field Value
C
The key code for the user pressing C
Declaration
Field Value
CharMask
Mask that indicates that this is a character value, values outside this range
indicate special characters like Alt-key combinations or special keys on the
keyboard like function keys, arrows keys and so on.
Declaration
public const Key CharMask
Field Value
CtrlMask
When this value is set, the Key encodes the sequence Ctrl-KeyValue.
And the actual value must be extracted by removing the CtrlMask.
Declaration
public const Key CtrlMask
Field Value
CursorDown
Cursor down key.
Declaration
public const Key CursorDown
Field Value
CursorLeft
Cursor left key.
Declaration
public const Key CursorLeft
Field Value
CursorRight
Cursor right key.
Declaration
public const Key CursorRight
Field Value
CursorUp
Cursor up key
Declaration
public const Key CursorUp
Field Value
d
Declaration
Field Value
D
The key code for the user pressing D
Declaration
Field Value
D0
Digit 0.
Declaration
Field Value
D1
Digit 1.
Declaration
Field Value
D2
Digit 2.
Declaration
Field Value
D3
Digit 3.
Declaration
Field Value
D4
Digit 4.
Declaration
Field Value
D5
Digit 5.
Declaration
Field Value
D6
Digit 6.
Declaration
Field Value
D7
Digit 7.
Declaration
Field Value
D8
Digit 8.
Declaration
Field Value
D9
Digit 9.
Declaration
Field Value
Delete
The key code for the user pressing the delete key.
Declaration
Field Value
DeleteChar
Delete character key
Declaration
public const Key DeleteChar
Field Value
e
Declaration
Field Value
E
The key code for the user pressing E
Declaration
Field Value
End
End key
Declaration
Field Value
Enter
The key code for the user pressing the return key.
Declaration
Field Value
Esc
The key code for the user pressing the escape key
Declaration
Field Value
f
Declaration
Field Value
F
The key code for the user pressing F
Declaration
Field Value
F1
F1 key.
Declaration
Field Value
F10
F10 key.
Declaration
Field Value
F11
F11 key.
Declaration
Field Value
F12
F12 key.
Declaration
Field Value
F2
F2 key.
Declaration
Field Value
F3
F3 key.
Declaration
Field Value
F4
F4 key.
Declaration
Field Value
F5
F5 key.
Declaration
Field Value
F6
F6 key.
Declaration
Field Value
F7
F7 key.
Declaration
Field Value
F8
F8 key.
Declaration
Field Value
F9
F9 key.
Declaration
Field Value
g
Declaration
Field Value
G
The key code for the user pressing G
Declaration
Field Value
h
Declaration
Field Value
H
The key code for the user pressing H
Declaration
Field Value
Home
Home key
Declaration
Field Value
i
Declaration
Field Value
I
The key code for the user pressing I
Declaration
Field Value
InsertChar
Insert character key
Declaration
public const Key InsertChar
Field Value
j
Declaration
Field Value
J
The key code for the user pressing J
Declaration
Field Value
k
Declaration
Field Value
K
The key code for the user pressing K
Declaration
Field Value
l
Declaration
Field Value
L
The key code for the user pressing L
Declaration
Field Value
m
Declaration
Field Value
M
The key code for the user pressing M
Declaration
Field Value
n
Declaration
Field Value
N
The key code for the user pressing N
Declaration
Field Value
Null
The key code representing null or empty
Declaration
Field Value
o
Declaration
Field Value
O
The key code for the user pressing O
Declaration
Field Value
p
Declaration
Field Value
P
The key code for the user pressing P
Declaration
Field Value
PageDown
Page Down key.
Declaration
public const Key PageDown
Field Value
PageUp
Page Up key.
Declaration
Field Value
q
Declaration
Field Value
Q
The key code for the user pressing Q
Declaration
Field Value
r
Declaration
Field Value
R
The key code for the user pressing R
Declaration
Field Value
s
Declaration
Field Value
S
The key code for the user pressing S
Declaration
Field Value
ShiftMask
When this value is set, the Key encodes the sequence Shift-KeyValue.
Declaration
public const Key ShiftMask
Field Value
Space
The key code for the user pressing the space bar
Declaration
Field Value
SpecialMask
If the
SpecialMask is set, then the value is that of the special mask,
otherwise, the value is the one of the lower bits (as extracted by
CharMask).
Declaration
public const Key SpecialMask
Field Value
t
Declaration
Field Value
T
The key code for the user pressing T
Declaration
Field Value
Tab
The key code for the user pressing the tab key (forwards tab key).
Declaration
Field Value
u
Declaration
Field Value
U
The key code for the user pressing U
Declaration
Field Value
Unknown
A key with an unknown mapping was raised.
Declaration
Field Value
v
Declaration
Field Value
V
The key code for the user pressing V
Declaration
Field Value
value__
Declaration
Field Value
| Type |
Description |
| System.UInt32 |
|
w
Declaration
Field Value
W
The key code for the user pressing W
Declaration
Field Value
x
Declaration
Field Value
X
The key code for the user pressing X
Declaration
Field Value
y
Declaration
Field Value
Y
The key code for the user pressing Y
Declaration
Field Value
z
Declaration
Field Value
Z
The key code for the user pressing Z
Declaration
Field Value