Copyright of xueying studio. For more information, see [http://blog.csdn.net/lina791211]
1. Preface
Javascript keyCode table
2. Key code table
Pass
Javascript keyCode table
|
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
0 |
|
|
|
|
|
|
|
|
BackSpace |
Tab |
1 |
|
|
Clear |
Enter |
|
|
Shift_L |
Control_L |
Alt_L |
Pause |
2 |
Caps_Lock |
|
|
|
|
|
|
Escape |
|
|
3 |
|
|
Space |
Prior |
Next |
End |
Home |
Left outer |
Up till |
Right → |
4 |
Down costs |
Select |
Print |
Execute |
|
Insert |
Delete |
Help |
0 equal braceright |
1 exclam onesuperior |
5 |
2 quotedbl twosuperior |
3 section threesuperior |
4 dollar $ |
5 percent % |
6 ampersand |
7 slash braceleft |
8 parenleft bracketleft |
9 parenright bracketright |
|
|
6 |
|
|
|
|
|
A |
B B |
C C |
D D |
E E EuroSign |
7 |
F F |
G G |
H H |
I I |
J J |
K K |
L L |
M M mu |
N N |
O O |
8 |
P P |
Q Q |
R R |
S S |
T T |
U U |
V V |
W W |
X X |
Y Y |
9 |
Z Z |
|
|
|
|
|
KP_0 KP_0 |
KP_1 KP_1 |
KP_2 KP_2 |
KP_3 KP_3 |
10 |
KP_4 KP_4 |
KP_5 KP_5 |
KP_6 KP_6 |
KP_7 KP_7 |
KP_8 KP_8 |
KP_9 |
KP_Multiply |
KP_Add |
KP_Separator |
KP_Subtract |
11 |
KP_Decimal |
KP_Divide |
F1 |
F2 |
F3 |
F4 |
F5 |
F6 |
F7 |
F8 |
12 |
F9 |
F10 |
F11 |
F12 |
F13 |
F14 |
F15 |
F16 |
F17 |
F18 |
13 |
F19 |
F20 |
F21 |
F22 |
F23 |
F24 |
Num_Lock |
Scroll_Lock |
|
|
14 |
|
|
|
|
|
|
|
|
|
|
15 |
|
|
|
|
|
|
|
|
|
|
16 |
|
|
|
|
|
|
|
|
|
|
17 |
|
|
|
|
|
|
|
|
|
|
18 |
|
|
|
|
|
|
|
Acute grave |
Comma semicolon |
Minus underscore |
19 |
Period colon |
|
Numbersign apostrophe |
|
|
|
|
|
|
|
20 |
|
|
|
|
|
|
|
|
|
|
21 |
Plusminus hyphen macron |
|
Copyright registered |
Guillemotleft guillemotright |
Masculine ordfeminine |
|
|
|
|
|
22 |
|
|
|
|
|
|
|
|
|
|
23 |
|
|
|
|
|
|
|
|
|
|
24 |
|
|
|
|
|
|
|
|
|
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|