前言
键盘编码值,简称键码值
快捷键键码值
Windows
BackSpace |
delete |
8 |
51 |
Tab |
tab |
9 |
48 |
Clear |
- |
12 |
- |
Enter |
return |
13 |
36/76 |
Shift |
- |
16 |
- |
- |
shift - left |
- |
57 |
- |
shift - right |
- |
60 |
Control |
control |
17 |
59 |
Alt |
- |
18 |
- |
- |
option - left |
- |
58 |
- |
option - right |
- |
61 |
- |
command |
- |
55 |
Cape Lock |
caps lock |
20 |
57 |
Esc |
esc |
27 |
53 |
Spacebar |
spacebar |
32 |
49 |
Page Up |
- |
33 |
- |
Page Down |
- |
34 |
- |
End |
- |
35 |
- |
Home |
- |
36 |
- |
Left Arrow |
Left Arrow |
37 |
126 |
Up Arrow |
Up Arrow |
38 |
125 |
Right Arrow |
Right Arrow |
39 |
125 |
Down Arrow |
Down Arrow |
40 |
124 |
Insert |
- |
45 |
- |
Delete |
- |
46 |
- |
Num Lock |
- |
144 |
- |
符号键键码值
;: |
186 |
41 |
=+ |
187 |
24 |
,< |
188 |
43 |
-_ |
189 |
27 |
.> |
190 |
47 |
/? |
191 |
44 |
`~ |
192 |
50 |
[{ |
219 |
33 |
\| |
220 |
42 |
]} |
221 |
30 |
'" |
222 |
39 |
字母键键码值
A |
65 |
0 |
B |
66 |
11 |
C |
67 |
8 |
D |
68 |
2 |
E |
69 |
14 |
F |
70 |
3 |
G |
71 |
5 |
H |
72 |
4 |
I |
73 |
34 |
J |
74 |
38 |
K |
75 |
40 |
L |
76 |
37 |
M |
77 |
46 |
N |
78 |
45 |
O |
79 |
31 |
P |
80 |
35 |
Q |
81 |
12 |
R |
82 |
15 |
S |
83 |
1 |
T |
84 |
17 |
U |
85 |
32 |
V |
86 |
9 |
W |
87 |
13 |
X |
88 |
7 |
Y |
89 |
16 |
Z |
90 |
6 |
数字键键码值(主键盘)
0 |
48 |
29 |
1 |
49 |
18 |
2 |
50 |
19 |
3 |
51 |
20 |
4 |
52 |
21 |
5 |
53 |
23 |
6 |
54 |
22 |
7 |
55 |
26 |
8 |
56 |
28 |
9 |
57 |
25 |
数字键键码值(小键盘)
0 |
96 |
1 |
97 |
2 |
98 |
3 |
99 |
4 |
100 |
5 |
101 |
6 |
102 |
7 |
103 |
8 |
104 |
9 |
105 |
* |
106 |
+ |
107 |
Enter |
108 |
- |
109 |
. |
110 |
/ |
111 |
功能键键码值
F1 |
112 |
107/122 |
F2 |
113 |
113/120 |
F3 |
114 |
99/106 |
F4 |
115 |
118/131 |
F5 |
- |
96 |
F6 |
117 |
97 |
F7 |
118 |
98 |
F8 |
- |
100 |
F9 |
120 |
131 |
F10 |
121 |
109 |
F11 |
122 |
103 |
F12 |
123 |
111 |
多媒体键键码值
搜索 |
170 |
收藏 |
171 |
浏览器 |
172 |
静音 |
173 |
音量减 |
174 |
音量加 |
175 |
停止 |
179 |
邮件 |
180 |
完成
参考文献
QQ群——DT课堂 - 辛末 - 11月新群 博客园——Ficow