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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
// IWYU pragma: private, include "mozilla/KeyTextEvents.h"
/**
* This header file defines all DOM keys which are defined in nsIDOMKeyEvent.
* You must define NS_DEFINE_VK macro before including this.
*
* It must have two arguments, (aDOMKeyName, aDOMKeyCode)
* aDOMKeyName is a key name in DOM.
* aDOMKeyCode is one of nsIDOMKeyEvent::DOM_VK_*.
*
* Optionally, you can define NS_DISALLOW_SAME_KEYCODE.
*
* If NS_DISALLOW_SAME_KEYCODE is defined, same keyCode won't listed up.
* This is useful when you create switch-case statement.
*/
#define DEFINE_VK_INTERNAL(aKeyName) \
NS_DEFINE_VK(VK##aKeyName, nsIDOMKeyEvent::DOM_VK##aKeyName)
// Some keycode may have different name in nsIDOMKeyEvent from its key name.
#define DEFINE_VK_INTERNAL2(aKeyName, aKeyCodeName) \
NS_DEFINE_VK(VK##aKeyName, nsIDOMKeyEvent::DOM_VK##aKeyCodeName)
DEFINE_VK_INTERNAL(_CANCEL)
DEFINE_VK_INTERNAL(_HELP)
DEFINE_VK_INTERNAL2(_BACK, _BACK_SPACE)
DEFINE_VK_INTERNAL(_TAB)
DEFINE_VK_INTERNAL(_CLEAR)
DEFINE_VK_INTERNAL(_RETURN)
DEFINE_VK_INTERNAL(_SHIFT)
DEFINE_VK_INTERNAL(_CONTROL)
DEFINE_VK_INTERNAL(_ALT)
DEFINE_VK_INTERNAL(_PAUSE)
DEFINE_VK_INTERNAL(_CAPS_LOCK)
#ifdef NS_DISALLOW_SAME_KEYCODE
DEFINE_VK_INTERNAL2(_KANA_OR_HANGUL, _KANA)
#else // #ifdef NS_DISALLOW_SAME_KEYCODE
DEFINE_VK_INTERNAL(_KANA)
DEFINE_VK_INTERNAL(_HANGUL)
#endif
DEFINE_VK_INTERNAL(_EISU)
DEFINE_VK_INTERNAL(_JUNJA)
DEFINE_VK_INTERNAL(_FINAL)
#ifdef NS_DISALLOW_SAME_KEYCODE
DEFINE_VK_INTERNAL2(_HANJA_OR_KANJI, _HANJA)
#else // #ifdef NS_DISALLOW_SAME_KEYCODE
DEFINE_VK_INTERNAL(_HANJA)
DEFINE_VK_INTERNAL(_KANJI)
#endif
DEFINE_VK_INTERNAL(_ESCAPE)
DEFINE_VK_INTERNAL(_CONVERT)
DEFINE_VK_INTERNAL(_NONCONVERT)
DEFINE_VK_INTERNAL(_ACCEPT)
DEFINE_VK_INTERNAL(_MODECHANGE)
DEFINE_VK_INTERNAL(_SPACE)
DEFINE_VK_INTERNAL(_PAGE_UP)
DEFINE_VK_INTERNAL(_PAGE_DOWN)
DEFINE_VK_INTERNAL(_END)
DEFINE_VK_INTERNAL(_HOME)
DEFINE_VK_INTERNAL(_LEFT)
DEFINE_VK_INTERNAL(_UP)
DEFINE_VK_INTERNAL(_RIGHT)
DEFINE_VK_INTERNAL(_DOWN)
DEFINE_VK_INTERNAL(_SELECT)
DEFINE_VK_INTERNAL(_PRINT)
DEFINE_VK_INTERNAL(_EXECUTE)
DEFINE_VK_INTERNAL(_PRINTSCREEN)
DEFINE_VK_INTERNAL(_INSERT)
DEFINE_VK_INTERNAL(_DELETE)
DEFINE_VK_INTERNAL(_0)
DEFINE_VK_INTERNAL(_1)
DEFINE_VK_INTERNAL(_2)
DEFINE_VK_INTERNAL(_3)
DEFINE_VK_INTERNAL(_4)
DEFINE_VK_INTERNAL(_5)
DEFINE_VK_INTERNAL(_6)
DEFINE_VK_INTERNAL(_7)
DEFINE_VK_INTERNAL(_8)
DEFINE_VK_INTERNAL(_9)
DEFINE_VK_INTERNAL(_COLON)
DEFINE_VK_INTERNAL(_SEMICOLON)
DEFINE_VK_INTERNAL(_LESS_THAN)
DEFINE_VK_INTERNAL(_EQUALS)
DEFINE_VK_INTERNAL(_GREATER_THAN)
DEFINE_VK_INTERNAL(_QUESTION_MARK)
DEFINE_VK_INTERNAL(_AT)
DEFINE_VK_INTERNAL(_A)
DEFINE_VK_INTERNAL(_B)
DEFINE_VK_INTERNAL(_C)
DEFINE_VK_INTERNAL(_D)
DEFINE_VK_INTERNAL(_E)
DEFINE_VK_INTERNAL(_F)
DEFINE_VK_INTERNAL(_G)
DEFINE_VK_INTERNAL(_H)
DEFINE_VK_INTERNAL(_I)
DEFINE_VK_INTERNAL(_J)
DEFINE_VK_INTERNAL(_K)
DEFINE_VK_INTERNAL(_L)
DEFINE_VK_INTERNAL(_M)
DEFINE_VK_INTERNAL(_N)
DEFINE_VK_INTERNAL(_O)
DEFINE_VK_INTERNAL(_P)
DEFINE_VK_INTERNAL(_Q)
DEFINE_VK_INTERNAL(_R)
DEFINE_VK_INTERNAL(_S)
DEFINE_VK_INTERNAL(_T)
DEFINE_VK_INTERNAL(_U)
DEFINE_VK_INTERNAL(_V)
DEFINE_VK_INTERNAL(_W)
DEFINE_VK_INTERNAL(_X)
DEFINE_VK_INTERNAL(_Y)
DEFINE_VK_INTERNAL(_Z)
DEFINE_VK_INTERNAL(_WIN)
DEFINE_VK_INTERNAL(_CONTEXT_MENU)
DEFINE_VK_INTERNAL(_SLEEP)
DEFINE_VK_INTERNAL(_NUMPAD0)
DEFINE_VK_INTERNAL(_NUMPAD1)
DEFINE_VK_INTERNAL(_NUMPAD2)
DEFINE_VK_INTERNAL(_NUMPAD3)
DEFINE_VK_INTERNAL(_NUMPAD4)
DEFINE_VK_INTERNAL(_NUMPAD5)
DEFINE_VK_INTERNAL(_NUMPAD6)
DEFINE_VK_INTERNAL(_NUMPAD7)
DEFINE_VK_INTERNAL(_NUMPAD8)
DEFINE_VK_INTERNAL(_NUMPAD9)
DEFINE_VK_INTERNAL(_MULTIPLY)
DEFINE_VK_INTERNAL(_ADD)
DEFINE_VK_INTERNAL(_SEPARATOR)
DEFINE_VK_INTERNAL(_SUBTRACT)
DEFINE_VK_INTERNAL(_DECIMAL)
DEFINE_VK_INTERNAL(_DIVIDE)
DEFINE_VK_INTERNAL(_F1)
DEFINE_VK_INTERNAL(_F2)
DEFINE_VK_INTERNAL(_F3)
DEFINE_VK_INTERNAL(_F4)
DEFINE_VK_INTERNAL(_F5)
DEFINE_VK_INTERNAL(_F6)
DEFINE_VK_INTERNAL(_F7)
DEFINE_VK_INTERNAL(_F8)
DEFINE_VK_INTERNAL(_F9)
DEFINE_VK_INTERNAL(_F10)
DEFINE_VK_INTERNAL(_F11)
DEFINE_VK_INTERNAL(_F12)
DEFINE_VK_INTERNAL(_F13)
DEFINE_VK_INTERNAL(_F14)
DEFINE_VK_INTERNAL(_F15)
DEFINE_VK_INTERNAL(_F16)
DEFINE_VK_INTERNAL(_F17)
DEFINE_VK_INTERNAL(_F18)
DEFINE_VK_INTERNAL(_F19)
DEFINE_VK_INTERNAL(_F20)
DEFINE_VK_INTERNAL(_F21)
DEFINE_VK_INTERNAL(_F22)
DEFINE_VK_INTERNAL(_F23)
DEFINE_VK_INTERNAL(_F24)
DEFINE_VK_INTERNAL(_NUM_LOCK)
DEFINE_VK_INTERNAL(_SCROLL_LOCK)
DEFINE_VK_INTERNAL(_WIN_OEM_FJ_JISHO)
DEFINE_VK_INTERNAL(_WIN_OEM_FJ_MASSHOU)
DEFINE_VK_INTERNAL(_WIN_OEM_FJ_TOUROKU)
DEFINE_VK_INTERNAL(_WIN_OEM_FJ_LOYA)
DEFINE_VK_INTERNAL(_WIN_OEM_FJ_ROYA)
DEFINE_VK_INTERNAL(_CIRCUMFLEX)
DEFINE_VK_INTERNAL(_EXCLAMATION)
DEFINE_VK_INTERNAL(_DOUBLE_QUOTE)
DEFINE_VK_INTERNAL(_HASH)
DEFINE_VK_INTERNAL(_DOLLAR)
DEFINE_VK_INTERNAL(_PERCENT)
DEFINE_VK_INTERNAL(_AMPERSAND)
DEFINE_VK_INTERNAL(_UNDERSCORE)
DEFINE_VK_INTERNAL(_OPEN_PAREN)
DEFINE_VK_INTERNAL(_CLOSE_PAREN)
DEFINE_VK_INTERNAL(_ASTERISK)
DEFINE_VK_INTERNAL(_PLUS)
DEFINE_VK_INTERNAL(_PIPE)
DEFINE_VK_INTERNAL(_HYPHEN_MINUS)
DEFINE_VK_INTERNAL(_OPEN_CURLY_BRACKET)
DEFINE_VK_INTERNAL(_CLOSE_CURLY_BRACKET)
DEFINE_VK_INTERNAL(_TILDE)
DEFINE_VK_INTERNAL(_VOLUME_MUTE)
DEFINE_VK_INTERNAL(_VOLUME_DOWN)
DEFINE_VK_INTERNAL(_VOLUME_UP)
DEFINE_VK_INTERNAL(_COMMA)
DEFINE_VK_INTERNAL(_PERIOD)
DEFINE_VK_INTERNAL(_SLASH)
DEFINE_VK_INTERNAL(_BACK_QUOTE)
DEFINE_VK_INTERNAL(_OPEN_BRACKET)
DEFINE_VK_INTERNAL(_BACK_SLASH)
DEFINE_VK_INTERNAL(_CLOSE_BRACKET)
DEFINE_VK_INTERNAL(_QUOTE)
DEFINE_VK_INTERNAL(_META)
DEFINE_VK_INTERNAL(_ALTGR)
DEFINE_VK_INTERNAL(_WIN_ICO_HELP)
DEFINE_VK_INTERNAL(_WIN_ICO_00)
DEFINE_VK_INTERNAL(_WIN_ICO_CLEAR)
DEFINE_VK_INTERNAL(_WIN_OEM_RESET)
DEFINE_VK_INTERNAL(_WIN_OEM_JUMP)
DEFINE_VK_INTERNAL(_WIN_OEM_PA1)
DEFINE_VK_INTERNAL(_WIN_OEM_PA2)
DEFINE_VK_INTERNAL(_WIN_OEM_PA3)
DEFINE_VK_INTERNAL(_WIN_OEM_WSCTRL)
DEFINE_VK_INTERNAL(_WIN_OEM_CUSEL)
DEFINE_VK_INTERNAL(_WIN_OEM_ATTN)
DEFINE_VK_INTERNAL(_WIN_OEM_FINISH)
DEFINE_VK_INTERNAL(_WIN_OEM_COPY)
DEFINE_VK_INTERNAL(_WIN_OEM_AUTO)
DEFINE_VK_INTERNAL(_WIN_OEM_ENLW)
DEFINE_VK_INTERNAL(_WIN_OEM_BACKTAB)
DEFINE_VK_INTERNAL(_ATTN)
DEFINE_VK_INTERNAL(_CRSEL)
DEFINE_VK_INTERNAL(_EXSEL)
DEFINE_VK_INTERNAL(_EREOF)
DEFINE_VK_INTERNAL(_PLAY)
DEFINE_VK_INTERNAL(_ZOOM)
DEFINE_VK_INTERNAL(_PA1)
DEFINE_VK_INTERNAL(_WIN_OEM_CLEAR)
#undef DEFINE_VK_INTERNAL
#undef DEFINE_VK_INTERNAL2
|