m messed up category |
Give the whole thing real descriptions |
||
Line 1: | Line 1: | ||
The '''Key''' [[Enum]] is used to represent the many different keys a keyboard may have. Keys described here map to ''positions'' on a US keyboard layout. For example, the "A" key is always located to the right of Caps Lock, which a user of a French AZERTY keyboard would instead see as the "Q" key. | |||
Note that many values are unused internally, and will therefore never be detected as "pressed". | |||
= Possible Values = | = Possible Values = | ||
{ | {{Table EnumValues | ||
|None|0|Represe | |||
|Backspace|8|The {{Kbd|← backspace}} key. | |||
|Tab|9|The tab key. | |||
|Clear|12|This value appears to be unused internally. | |||
|None | |Return|13|The {{Kbd|return ↵}} key, sometimes also called "enter". | ||
|Pause|19|The {{Kbd|pause}} key. | |||
|0 | |Escape|27|The escape or "{{Kbd|Esc}}" key. | ||
| | |Space|32|The space bar. | ||
|Backspace | |Exclaim|33|This value appears to be unused internally. | ||
| | |DoubleQuote|34|This value appears to be unused internally. | ||
| | |Hash|35|This value appears to be unused internally. | ||
| | |Dollar|36|This value appears to be unused internally. | ||
|Tab | |Ampersand|38|This value appears to be unused internally. | ||
|Quote|39|This value appears to be unused internally. | |||
|9 | |LeftParenthesis|40|This value appears to be unused internally. | ||
| | |RightParenthesis|41|This value appears to be unused internally. | ||
|Asterisk|42|This value appears to be unused internally. | |||
|Clear | |Plus|43|This value appears to be unused internally. | ||
|12 | |Comma|44|The comma or "{{Kbd|,}}" key. | ||
| | |Minus|45|The minus or "{{Kbd|-}}" key. | ||
|Return | |Period|46|The period or "{{Kbd|.}}" key. | ||
|Slash|47|The forward slash or "{{Kbd|/}}" key. | |||
|13 | |Alpha0|48|The "{{Kbd|0}}" key on the number row. | ||
| | |Alpha1|49|The "{{Kbd|1}}" key on the number row. | ||
| | |Alpha2|50|The "{{Kbd|2}}" key on the number row. | ||
|Pause | |Alpha3|51|The "{{Kbd|3}}" key on the number row. | ||
|19 | |Alpha4|52|The "{{Kbd|4}}" key on the number row. | ||
| | |Alpha5|53|The "{{Kbd|5}}" key on the number row. | ||
| | |Alpha6|54|The "{{Kbd|6}}" key on the number row. | ||
|Escape | |Alpha7|55|The "{{Kbd|7}}" key on the number row. | ||
|27 | |Alpha8|56|The "{{Kbd|8}}" key on the number row. | ||
| | |Alpha9|57|The "{{Kbd|9}}" key on the number row. | ||
| | |Colon|58|This value appears to be unused internally. | ||
|Space | |Semicolon|59|The semicolon or "{{Kbd|;}}" key. | ||
|32 | |Less|60|This value appears to be unused internally. | ||
| | |Equals|61|The equals or "{{Kbd|=}}" key. | ||
|Exclaim | |Greater|62|This value appears to be unused internally. | ||
|Question|63|This value appears to be unused internally. | |||
|33 | |At|64|This value appears to be unused internally. | ||
| | |VerticalBar|65|This value appears to be unused internally. | ||
|DoubleQuote | |LeftBracket|91|The left bracket or "{{Kbd|[}}" key. | ||
|Backslash|92|The backslash or "{{Kbd|\}}" key. | |||
|34 | |RightBracket|93|The left bracket or "{{Kbd|]}}" key. | ||
| | |Caret|94|This value appears to be unused internally. | ||
|Underscore|95|This value appears to be unused internally. | |||
|Hash | |BackQuote|96|The backquote, backtick, grave, or "{{Kbd|`}}" key. | ||
|35 | |A|97|The "{{Kbd|A}}" key. | ||
| | |B|98|The "{{Kbd|B}}" key. | ||
|Dollar | |C|99|The "{{Kbd|C}}" key. | ||
| | |D|100|The "{{Kbd|D}}" key. | ||
|E|101|The "{{Kbd|E}}" key. | |||
|F|102|The "{{Kbd|F}}" key. | |||
| | |G|103|The "{{Kbd|G}}" key. | ||
|Ampersand | |H|104|The "{{Kbd|H}}" key. | ||
|38 | |I|105|The "{{Kbd|I}}" key. | ||
| | |J|106|The "{{Kbd|J}}" key. | ||
|Quote | |K|107|The "{{Kbd|K}}" key. | ||
|L|108|The "{{Kbd|L}}" key. | |||
|39 | |M|109|The "{{Kbd|M}}" key. | ||
| | |N|110|The "{{Kbd|N}}" key. | ||
|LeftParenthesis | |O|111|The "{{Kbd|O}}" key. | ||
| | |P|112|The "{{Kbd|P}}" key. | ||
| | |Q|113|The "{{Kbd|Q}}" key. | ||
| | |R|114|The "{{Kbd|R}}" key. | ||
| | |S|115|The "{{Kbd|S}}" key. | ||
| | |T|116|The "{{Kbd|T}}" key. | ||
| | |U|117|The "{{Kbd|U}}" key. | ||
| | |V|118|The "{{Kbd|V}}" key. | ||
| | |W|119|The "{{Kbd|W}}" key. | ||
| | |X|120|The "{{Kbd|X}}" key. | ||
| | |Y|121|The "{{Kbd|Y}}" key. | ||
| | |Z|122|The "{{Kbd|Z}}" key. | ||
| | |Percent|123|This value appears to be unused internally. | ||
| | |Tilde|124|This value appears to be unused internally. | ||
| | |LeftBrace|125|This value appears to be unused internally. | ||
|- | |RightBrace|126|This value appears to be unused internally. | ||
| | |Delete|127|The delete or "{{Kbd|del}}" key. | ||
| | |Keypad0|256|The "{{Kbd|0}}" key on the number or keypad. | ||
| | |Keypad1|257|The "{{Kbd|1}}" key on the number or keypad. | ||
| | |Keypad2|258|The "{{Kbd|2}}" key on the number or keypad. | ||
| | |Keypad3|259|The "{{Kbd|3}}" key on the number or keypad. | ||
| | |Keypad4|260|The "{{Kbd|4}}" key on the number or keypad. | ||
| | |Keypad5|261|The "{{Kbd|5}}" key on the number or keypad. | ||
| | |Keypad6|262|The "{{Kbd|6}}" key on the number or keypad. | ||
| | |Keypad7|263|The "{{Kbd|7}}" key on the number or keypad. | ||
| | |Keypad8|264|The "{{Kbd|8}}" key on the number or keypad. | ||
| | |Keypad9|265|The "{{Kbd|9}}" key on the number or keypad. | ||
| | |KeypadPeriod|266|The period or "{{Kbd|.}}" key on the number or keypad. | ||
| | |KeypadDivide|267|The division key or "{{Kbd|/}}" on the number or keypad. | ||
| | |KeypadMultiply|268|The multiplication or "{{Kbd|*}}" key on the number or keypad. | ||
| | |KeypadMinus|269|The minus or "{{Kbd|-}}" key on the number or keypad. | ||
| | |KeypadPlus|270|The plus or "{{Kbd|+}}" key on the number or keypad. | ||
| | |KeypadEnter|271|The "{{Kbd|enter}}" key on the number or keypad. | ||
| | |KeypadEquals|272|The equals or "{{Kbd|=}}" key on the number or keypad. Not all keyboards have this key, even if they have a number pad. | ||
| | |UpArrow|273|The up arrow key. | ||
| | |DownArrow|274|The down arrow key. | ||
| | |RightArrow|275|The right arrow key. | ||
| | |LeftArrow|276|The left arrow key. | ||
| | |Insert|277|The {{Kbd|insert}} or "{{Kbd|ins}}" key. | ||
| | |Home|278|The {{Kbd|home}} key. | ||
| | |End|279|The {{Kbd|end}} key. | ||
| | |PageUp|280|The {{Kbd|Page Up}} or "{{Kbd|PgUp}}" key. | ||
| | |PageDown|281|The {{Kbd|Page Down}} or "{{Kbd|PgDown}}" key. | ||
| | |F1|282|The {{Kbd|F1}} key. | ||
| | |F2|283|The {{Kbd|F2}} key. | ||
| | |F3|284|The {{Kbd|F3}} key. | ||
| | |F4|285|The {{Kbd|F4}} key. | ||
| | |F5|286|The {{Kbd|F5}} key. | ||
| | |F6|287|The {{Kbd|F6}} key. | ||
| | |F7|288|The {{Kbd|F7}} key. | ||
| | |F8|289|The {{Kbd|F8}} key. | ||
| | |F9|290|The {{Kbd|F9}} key. | ||
| | |F10|291|The {{Kbd|F10}} key. | ||
| | |F11|292|The {{Kbd|F11}} key. | ||
| | |F12|293|The {{Kbd|F12}} key. | ||
| | |F13|294|The {{Kbd|F13}} key. | ||
| | |F14|295|The {{Kbd|F14}} key. | ||
| | |F15|296|The {{Kbd|F15}} key. | ||
| | |Numlock|300|The {{Kbd|Num Lock}} key. | ||
| | |CapsLock|301|The {{Kbd|Caps Lock}} key. | ||
| | |ScrollLock|302|The {{Kbd|Scroll Lock}} key. | ||
| | |RightShift|303|The right {{Kbd|Shift}} key. | ||
| | |LeftShift|304|The left {{Kbd|Shift}} key. | ||
| | |RightControl|305|The right control or "{{Kbd|Ctrl}}" key. | ||
| | |LeftControl|306|The left control or "{{Kbd|Ctrl}}" key. | ||
| | |RightAlt|307|The right {{Kbd|Alt}} or {{Kbd|⌥ Option}} key. | ||
| | |LeftAlt|308|The left {{Kbd|Alt}} or {{Kbd|⌥ Option}} key. | ||
| | |RightApple|309|This value appears to be unused internally. | ||
| | |RightCommand|309|This value appears to be unused internally. | ||
| | |LeftApple|310|This value appears to be unused internally. | ||
| | |LeftCommand|310|This value appears to be unused internally. | ||
| | |LeftWindows|311|The left Windows, "Meta" or {{Kbd|⌘ Command}} key. | ||
| | |RightWindows|312|The right Windows, "Meta" or {{Kbd|⌘ Command}} key. | ||
| | |AltGr|313|The same key as <code>RightAlt</code>. | ||
| | |Help|315|This value appears to be unused internally. | ||
| | |Print|316|The {{Kbd|Print Screen}} key. | ||
| | |SysReq|317|This value appears to be unused internally. | ||
| | |Break|318|This value appears to be unused internally. | ||
| | |Menu|319|This value appears to be unused internally. | ||
| | |Shift|512|Either <code>LeftShift</code> or <code>RightShift</code>. | ||
| | |Control|513|Either <code>LeftControl</code> or <code>RightControl</code>. | ||
| | |Alt|514|Either <code>LeftAlt</code> or <code>RightAlt</code>. | ||
| | |Windows|515|Either <code>LeftWindows</code> or <code>RightWindows</code>. | ||
| | }} | ||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
|LeftWindows | |||
[[Category:Enums]] [[Category:Type]] | [[Category:Enums]] [[Category:Type]] |
Revision as of 04:19, 4 March 2024
The Key Enum is used to represent the many different keys a keyboard may have. Keys described here map to positions on a US keyboard layout. For example, the "A" key is always located to the right of Caps Lock, which a user of a French AZERTY keyboard would instead see as the "Q" key.
Note that many values are unused internally, and will therefore never be detected as "pressed".
Possible Values
Name | Value | Description |
---|---|---|
None
|
0 | Represe |
Backspace
|
8 | The ← backspace key. |
Tab
|
9 | The tab key. |
Clear
|
12 | This value appears to be unused internally. |
Return
|
13 | The return ↵ key, sometimes also called "enter". |
Pause
|
19 | The pause key. |
Escape
|
27 | The escape or "Esc" key. |
Space
|
32 | The space bar. |
Exclaim
|
33 | This value appears to be unused internally. |
DoubleQuote
|
34 | This value appears to be unused internally. |
Hash
|
35 | This value appears to be unused internally. |
Dollar
|
36 | This value appears to be unused internally. |
Ampersand
|
38 | This value appears to be unused internally. |
Quote
|
39 | This value appears to be unused internally. |
LeftParenthesis
|
40 | This value appears to be unused internally. |
RightParenthesis
|
41 | This value appears to be unused internally. |
Asterisk
|
42 | This value appears to be unused internally. |
Plus
|
43 | This value appears to be unused internally. |
Comma
|
44 | The comma or "," key. |
Minus
|
45 | The minus or "-" key. |
Period
|
46 | The period or "." key. |
Slash
|
47 | The forward slash or "/" key. |
Alpha0
|
48 | The "0" key on the number row. |
Alpha1
|
49 | The "1" key on the number row. |
Alpha2
|
50 | The "2" key on the number row. |
Alpha3
|
51 | The "3" key on the number row. |
Alpha4
|
52 | The "4" key on the number row. |
Alpha5
|
53 | The "5" key on the number row. |
Alpha6
|
54 | The "6" key on the number row. |
Alpha7
|
55 | The "7" key on the number row. |
Alpha8
|
56 | The "8" key on the number row. |
Alpha9
|
57 | The "9" key on the number row. |
Colon
|
58 | This value appears to be unused internally. |
Semicolon
|
59 | The semicolon or ";" key. |
Less
|
60 | This value appears to be unused internally. |
Equals
|
61 | The equals or "=" key. |
Greater
|
62 | This value appears to be unused internally. |
Question
|
63 | This value appears to be unused internally. |
At
|
64 | This value appears to be unused internally. |
VerticalBar
|
65 | This value appears to be unused internally. |
LeftBracket
|
91 | The left bracket or "[" key. |
Backslash
|
92 | The backslash or "\" key. |
RightBracket
|
93 | The left bracket or "]" key. |
Caret
|
94 | This value appears to be unused internally. |
Underscore
|
95 | This value appears to be unused internally. |
BackQuote
|
96 | The backquote, backtick, grave, or "`" key. |
A
|
97 | The "A" key. |
B
|
98 | The "B" key. |
C
|
99 | The "C" key. |
D
|
100 | The "D" key. |
E
|
101 | The "E" key. |
F
|
102 | The "F" key. |
G
|
103 | The "G" key. |
H
|
104 | The "H" key. |
I
|
105 | The "I" key. |
J
|
106 | The "J" key. |
K
|
107 | The "K" key. |
L
|
108 | The "L" key. |
M
|
109 | The "M" key. |
N
|
110 | The "N" key. |
O
|
111 | The "O" key. |
P
|
112 | The "P" key. |
Q
|
113 | The "Q" key. |
R
|
114 | The "R" key. |
S
|
115 | The "S" key. |
T
|
116 | The "T" key. |
U
|
117 | The "U" key. |
V
|
118 | The "V" key. |
W
|
119 | The "W" key. |
X
|
120 | The "X" key. |
Y
|
121 | The "Y" key. |
Z
|
122 | The "Z" key. |
Percent
|
123 | This value appears to be unused internally. |
Tilde
|
124 | This value appears to be unused internally. |
LeftBrace
|
125 | This value appears to be unused internally. |
RightBrace
|
126 | This value appears to be unused internally. |
Delete
|
127 | The delete or "del" key. |
Keypad0
|
256 | The "0" key on the number or keypad. |
Keypad1
|
257 | The "1" key on the number or keypad. |
Keypad2
|
258 | The "2" key on the number or keypad. |
Keypad3
|
259 | The "3" key on the number or keypad. |
Keypad4
|
260 | The "4" key on the number or keypad. |
Keypad5
|
261 | The "5" key on the number or keypad. |
Keypad6
|
262 | The "6" key on the number or keypad. |
Keypad7
|
263 | The "7" key on the number or keypad. |
Keypad8
|
264 | The "8" key on the number or keypad. |
Keypad9
|
265 | The "9" key on the number or keypad. |
KeypadPeriod
|
266 | The period or "." key on the number or keypad. |
KeypadDivide
|
267 | The division key or "/" on the number or keypad. |
KeypadMultiply
|
268 | The multiplication or "*" key on the number or keypad. |
KeypadMinus
|
269 | The minus or "-" key on the number or keypad. |
KeypadPlus
|
270 | The plus or "+" key on the number or keypad. |
KeypadEnter
|
271 | The "enter" key on the number or keypad. |
KeypadEquals
|
272 | The equals or "=" key on the number or keypad. Not all keyboards have this key, even if they have a number pad. |
UpArrow
|
273 | The up arrow key. |
DownArrow
|
274 | The down arrow key. |
RightArrow
|
275 | The right arrow key. |
LeftArrow
|
276 | The left arrow key. |
Insert
|
277 | The insert or "ins" key. |
Home
|
278 | The home key. |
End
|
279 | The end key. |
PageUp
|
280 | The Page Up or "PgUp" key. |
PageDown
|
281 | The Page Down or "PgDown" key. |
F1
|
282 | The F1 key. |
F2
|
283 | The F2 key. |
F3
|
284 | The F3 key. |
F4
|
285 | The F4 key. |
F5
|
286 | The F5 key. |
F6
|
287 | The F6 key. |
F7
|
288 | The F7 key. |
F8
|
289 | The F8 key. |
F9
|
290 | The F9 key. |
F10
|
291 | The F10 key. |
F11
|
292 | The F11 key. |
F12
|
293 | The F12 key. |
F13
|
294 | The F13 key. |
F14
|
295 | The F14 key. |
F15
|
296 | The F15 key. |
Numlock
|
300 | The Num Lock key. |
CapsLock
|
301 | The Caps Lock key. |
ScrollLock
|
302 | The Scroll Lock key. |
RightShift
|
303 | The right Shift key. |
LeftShift
|
304 | The left Shift key. |
RightControl
|
305 | The right control or "Ctrl" key. |
LeftControl
|
306 | The left control or "Ctrl" key. |
RightAlt
|
307 | The right Alt or ⌥ Option key. |
LeftAlt
|
308 | The left Alt or ⌥ Option key. |
RightApple
|
309 | This value appears to be unused internally. |
RightCommand
|
309 | This value appears to be unused internally. |
LeftApple
|
310 | This value appears to be unused internally. |
LeftCommand
|
310 | This value appears to be unused internally. |
LeftWindows
|
311 | The left Windows, "Meta" or ⌘ Command key. |
RightWindows
|
312 | The right Windows, "Meta" or ⌘ Command key. |
AltGr
|
313 | The same key as RightAlt .
|
Help
|
315 | This value appears to be unused internally. |
Print
|
316 | The Print Screen key. |
SysReq
|
317 | This value appears to be unused internally. |
Break
|
318 | This value appears to be unused internally. |
Menu
|
319 | This value appears to be unused internally. |
Shift
|
512 | Either LeftShift or RightShift .
|
Control
|
513 | Either LeftControl or RightControl .
|
Alt
|
514 | Either LeftAlt or RightAlt .
|
Windows
|
515 | Either LeftWindows or RightWindows .
|