整理了一份JSON格式的键盘编码对照表。欢迎转载,但请注明出处,谢谢!
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
|
{
VK_BACK: 8, //退格键
VK_TAB: 9, //TAB键
VK_RETURN: 13, //回车键
VK_SHIFT: 16, //Shift键
VK_CONTROL: 17, //Ctrl键
VK_MENU: 18, //Alt键
VK_PAUSE: 19, //Pause Break键
VK_CAPITAL: 20, //Caps Lock键
VK_SPACE: 32, //空格键
VK_PRIOR: 33, //Page Up
VK_NEXT: 34, //Page Down
VK_END: 35, //End键
VK_HOME: 36, //Home键
VK_LEFT: 37, //方向键:←
VK_UP: 38, //方向键:↑
VK_RIGHT: 39, //方向键:→
VK_DOWN: 40, //方向键:↓
VK_INSERT: 45, //Insert键
VK_DELETE: 46, //Delete键
//字母表
VK_A: 65,
VK_B: 66,
VK_C: 67,
VK_D: 68,
VK_E: 69,
VK_F: 70,
VK_G: 71,
VK_H: 72,
VK_I: 73,
VK_J: 74,
VK_K: 75,
VK_L: 76,
VK_M: 77,
VK_N: 78,
VK_O: 79,
VK_P: 80,
VK_Q: 81,
VK_R: 82,
VK_S: 83,
VK_T: 84,
VK_U: 85,
VK_V: 86,
VK_W: 87,
VK_X: 88,
VK_Y: 89,
VK_Z: 90,
VK_LWIN: 91, //左徽标键
VK_RWIN: 92, //右徽标键
VK_APPS: 93, //鼠标右键快捷键
VK_NUMPAD0: 96, //小键盘0
VK_NUMPAD0: 97, //小键盘1
VK_NUMPAD0: 98, //小键盘2
VK_NUMPAD0: 99, //小键盘3
VK_NUMPAD0: 100, //小键盘4
VK_NUMPAD0: 101, //小键盘5
VK_NUMPAD0: 102, //小键盘6
VK_NUMPAD0: 103, //小键盘7
VK_NUMPAD0: 104, //小键盘8
VK_NUMPAD0: 105, //小键盘9
VK_DECIMAL: 110, //小键盘.
VK_MULTIPLY: 106, //小键盘*
VK_MULTIPLY: 107, //小键盘+
VK_SUBTRACT: 109, //小键盘-
VK_DIVIDE: 111, //小键盘/
VK_F1: 112, //F1键
VK_F2: 113, //F2键
VK_F3: 114, //F3键
VK_F4: 115, //F4键
VK_F5: 116, //F5键
VK_F6: 117, //F6键
VK_F7: 118, //F7键
VK_F8: 119, //F8键
VK_F9: 120, //F9键
VK_F10: 121, //F10键
VK_F11: 122, //F11键
VK_F12: 123, //F12键
VK_NUMLOCK: 144, //Num Lock键
VK_SCROLL: 145, //Scroll Lock键
}
|