Home > @rainway/web > VirtualKey
VirtualKey enum
An enum representing a "virtual key". That is, each member of this enum represents a _behavior_ a key on a keyboard may have (for example "the behavior of the Tab key"), regardless of the physical position of that key (for example "the squat, leftmost key underneath the number row").
This coincides with the Windows VirtualKey enum, but in the context of the Rainway Protocol it can be considered platform-independent, and peers should convert to/from it when generating/processing Rainway keyboard messages.
See: https://docs.microsoft.com/en-us/uwp/api/windows.system.virtualkey?view=winrt-19041
Signature:
export declare enum VirtualKey
Enumeration Members
Member | Value | Description |
---|---|---|
A | 44 | |
AbntC1 | 147 | |
AbntC2 | 148 | |
Add | 85 | |
Apps | 72 | |
Attn | 163 | |
B | 45 | |
Back | 2 | |
BrowserBack | 122 | |
BrowserFavorites | 127 | |
BrowserForward | 123 | |
BrowserHome | 128 | |
BrowserRefresh | 124 | |
BrowserSearch | 126 | |
BrowserStop | 125 | |
C | 46 | |
Cancel | 1 | |
CapsLock | 8 | |
Clear | 5 | |
CrSel | 164 | |
D | 47 | |
D0 | 34 | |
D1 | 35 | |
D2 | 36 | |
D3 | 37 | |
D4 | 38 | |
D5 | 39 | |
D6 | 40 | |
D7 | 41 | |
D8 | 42 | |
D9 | 43 | |
DeadCharProcessed | 172 | |
Decimal | 88 | |
Delete | 32 | |
Divide | 89 | |
Down | 26 | |
E | 48 | |
End | 21 | |
Enter | 6 | |
EraseEof | 166 | |
Escape | 13 | |
Execute | 29 | |
ExSel | 165 | |
F | 49 | |
F1 | 90 | |
F10 | 99 | |
F11 | 100 | |
F12 | 101 | |
F13 | 102 | |
F14 | 103 | |
F15 | 104 | |
F16 | 105 | |
F17 | 106 | |
F18 | 107 | |
F19 | 108 | |
F2 | 91 | |
F20 | 109 | |
F21 | 110 | |
F22 | 111 | |
F23 | 112 | |
F24 | 113 | |
F3 | 92 | |
F4 | 93 | |
F5 | 94 | |
F6 | 95 | |
F7 | 96 | |
F8 | 97 | |
F9 | 98 | |
FinalMode | 11 | |
G | 50 | |
H | 51 | |
HangulMode | 9 | |
HanjaMode | 12 | |
Help | 33 | |
Home | 22 | |
I | 52 | |
ImeAccept | 16 | |
ImeConvert | 14 | |
ImeModeChange | 17 | |
ImeNonConvert | 15 | |
ImeProcessed | 155 | |
Insert | 31 | |
J | 53 | |
JunjaMode | 10 | |
K | 54 | |
L | 55 | |
LaunchApplication1 | 138 | |
LaunchApplication2 | 139 | |
LaunchMail | 136 | |
Left | 23 | |
LeftAlt | 120 | |
LeftCtrl | 118 | |
LeftShift | 116 | |
LineFeed | 4 | |
LWin | 70 | |
M | 56 | |
MediaNextTrack | 132 | |
MediaPlayPause | 135 | |
MediaPreviousTrack | 133 | |
MediaStop | 134 | |
Multiply | 84 | |
N | 57 | |
NoName | 169 | |
None | 0 | |
NumLock | 114 | |
NumPad0 | 74 | |
NumPad1 | 75 | |
NumPad2 | 76 | |
NumPad3 | 77 | |
NumPad4 | 78 | |
NumPad5 | 79 | |
NumPad6 | 80 | |
NumPad7 | 81 | |
NumPad8 | 82 | |
NumPad9 | 83 | |
O | 58 | |
Oem1 | 140 | |
Oem102 | 154 | |
Oem2 | 145 | |
Oem3 | 146 | |
Oem4 | 149 | |
Oem5 | 150 | |
Oem6 | 151 | |
Oem7 | 152 | |
Oem8 | 153 | |
OemAttn | 157 | |
OemAuto | 160 | |
OemBackTab | 162 | |
OemClear | 171 | |
OemComma | 142 | |
OemCopy | 159 | |
OemEnlw | 161 | |
OemFinish | 158 | |
OemMinus | 143 | |
OemPeriod | 144 | |
OemPlus | 141 | |
P | 59 | |
Pa1 | 170 | |
PageDown | 20 | |
PageUp | 19 | |
Pause | 7 | |
Play | 167 | |
28 | ||
PrintScreen | 30 | |
Q | 60 | |
R | 61 | |
Right | 25 | |
RightAlt | 121 | |
RightCtrl | 119 | |
RightShift | 117 | |
RWin | 71 | |
S | 62 | |
Scroll | 115 | |
Select | 27 | |
SelectMedia | 137 | |
Separator | 86 | |
Sleep | 73 | |
Space | 18 | |
Subtract | 87 | |
System | 156 | |
T | 63 | |
Tab | 3 | |
U | 64 | |
Up | 24 | |
V | 65 | |
VolumeDown | 130 | |
VolumeMute | 129 | |
VolumeUp | 131 | |
W | 66 | |
X | 67 | |
Y | 68 | |
Z | 69 | |
Zoom | 168 |