1 | /**
|
2 | * @ignore
|
3 | * some key-codes definition and utils from closure-library
|
4 | * @author yiminghe@gmail.com
|
5 | */
|
6 | declare const KeyCode: {
|
7 | /**
|
8 | * MAC_ENTER
|
9 | */
|
10 | MAC_ENTER: number;
|
11 | /**
|
12 | * BACKSPACE
|
13 | */
|
14 | BACKSPACE: number;
|
15 | /**
|
16 | * TAB
|
17 | */
|
18 | TAB: number;
|
19 | /**
|
20 | * NUMLOCK on FF/Safari Mac
|
21 | */
|
22 | NUM_CENTER: number;
|
23 | /**
|
24 | * ENTER
|
25 | */
|
26 | ENTER: number;
|
27 | /**
|
28 | * SHIFT
|
29 | */
|
30 | SHIFT: number;
|
31 | /**
|
32 | * CTRL
|
33 | */
|
34 | CTRL: number;
|
35 | /**
|
36 | * ALT
|
37 | */
|
38 | ALT: number;
|
39 | /**
|
40 | * PAUSE
|
41 | */
|
42 | PAUSE: number;
|
43 | /**
|
44 | * CAPS_LOCK
|
45 | */
|
46 | CAPS_LOCK: number;
|
47 | /**
|
48 | * ESC
|
49 | */
|
50 | ESC: number;
|
51 | /**
|
52 | * SPACE
|
53 | */
|
54 | SPACE: number;
|
55 | /**
|
56 | * PAGE_UP
|
57 | */
|
58 | PAGE_UP: number;
|
59 | /**
|
60 | * PAGE_DOWN
|
61 | */
|
62 | PAGE_DOWN: number;
|
63 | /**
|
64 | * END
|
65 | */
|
66 | END: number;
|
67 | /**
|
68 | * HOME
|
69 | */
|
70 | HOME: number;
|
71 | /**
|
72 | * LEFT
|
73 | */
|
74 | LEFT: number;
|
75 | /**
|
76 | * UP
|
77 | */
|
78 | UP: number;
|
79 | /**
|
80 | * RIGHT
|
81 | */
|
82 | RIGHT: number;
|
83 | /**
|
84 | * DOWN
|
85 | */
|
86 | DOWN: number;
|
87 | /**
|
88 | * PRINT_SCREEN
|
89 | */
|
90 | PRINT_SCREEN: number;
|
91 | /**
|
92 | * INSERT
|
93 | */
|
94 | INSERT: number;
|
95 | /**
|
96 | * DELETE
|
97 | */
|
98 | DELETE: number;
|
99 | /**
|
100 | * ZERO
|
101 | */
|
102 | ZERO: number;
|
103 | /**
|
104 | * ONE
|
105 | */
|
106 | ONE: number;
|
107 | /**
|
108 | * TWO
|
109 | */
|
110 | TWO: number;
|
111 | /**
|
112 | * THREE
|
113 | */
|
114 | THREE: number;
|
115 | /**
|
116 | * FOUR
|
117 | */
|
118 | FOUR: number;
|
119 | /**
|
120 | * FIVE
|
121 | */
|
122 | FIVE: number;
|
123 | /**
|
124 | * SIX
|
125 | */
|
126 | SIX: number;
|
127 | /**
|
128 | * SEVEN
|
129 | */
|
130 | SEVEN: number;
|
131 | /**
|
132 | * EIGHT
|
133 | */
|
134 | EIGHT: number;
|
135 | /**
|
136 | * NINE
|
137 | */
|
138 | NINE: number;
|
139 | /**
|
140 | * QUESTION_MARK
|
141 | */
|
142 | QUESTION_MARK: number;
|
143 | /**
|
144 | * A
|
145 | */
|
146 | A: number;
|
147 | /**
|
148 | * B
|
149 | */
|
150 | B: number;
|
151 | /**
|
152 | * C
|
153 | */
|
154 | C: number;
|
155 | /**
|
156 | * D
|
157 | */
|
158 | D: number;
|
159 | /**
|
160 | * E
|
161 | */
|
162 | E: number;
|
163 | /**
|
164 | * F
|
165 | */
|
166 | F: number;
|
167 | /**
|
168 | * G
|
169 | */
|
170 | G: number;
|
171 | /**
|
172 | * H
|
173 | */
|
174 | H: number;
|
175 | /**
|
176 | * I
|
177 | */
|
178 | I: number;
|
179 | /**
|
180 | * J
|
181 | */
|
182 | J: number;
|
183 | /**
|
184 | * K
|
185 | */
|
186 | K: number;
|
187 | /**
|
188 | * L
|
189 | */
|
190 | L: number;
|
191 | /**
|
192 | * M
|
193 | */
|
194 | M: number;
|
195 | /**
|
196 | * N
|
197 | */
|
198 | N: number;
|
199 | /**
|
200 | * O
|
201 | */
|
202 | O: number;
|
203 | /**
|
204 | * P
|
205 | */
|
206 | P: number;
|
207 | /**
|
208 | * Q
|
209 | */
|
210 | Q: number;
|
211 | /**
|
212 | * R
|
213 | */
|
214 | R: number;
|
215 | /**
|
216 | * S
|
217 | */
|
218 | S: number;
|
219 | /**
|
220 | * T
|
221 | */
|
222 | T: number;
|
223 | /**
|
224 | * U
|
225 | */
|
226 | U: number;
|
227 | /**
|
228 | * V
|
229 | */
|
230 | V: number;
|
231 | /**
|
232 | * W
|
233 | */
|
234 | W: number;
|
235 | /**
|
236 | * X
|
237 | */
|
238 | X: number;
|
239 | /**
|
240 | * Y
|
241 | */
|
242 | Y: number;
|
243 | /**
|
244 | * Z
|
245 | */
|
246 | Z: number;
|
247 | /**
|
248 | * META
|
249 | */
|
250 | META: number;
|
251 | /**
|
252 | * WIN_KEY_RIGHT
|
253 | */
|
254 | WIN_KEY_RIGHT: number;
|
255 | /**
|
256 | * CONTEXT_MENU
|
257 | */
|
258 | CONTEXT_MENU: number;
|
259 | /**
|
260 | * NUM_ZERO
|
261 | */
|
262 | NUM_ZERO: number;
|
263 | /**
|
264 | * NUM_ONE
|
265 | */
|
266 | NUM_ONE: number;
|
267 | /**
|
268 | * NUM_TWO
|
269 | */
|
270 | NUM_TWO: number;
|
271 | /**
|
272 | * NUM_THREE
|
273 | */
|
274 | NUM_THREE: number;
|
275 | /**
|
276 | * NUM_FOUR
|
277 | */
|
278 | NUM_FOUR: number;
|
279 | /**
|
280 | * NUM_FIVE
|
281 | */
|
282 | NUM_FIVE: number;
|
283 | /**
|
284 | * NUM_SIX
|
285 | */
|
286 | NUM_SIX: number;
|
287 | /**
|
288 | * NUM_SEVEN
|
289 | */
|
290 | NUM_SEVEN: number;
|
291 | /**
|
292 | * NUM_EIGHT
|
293 | */
|
294 | NUM_EIGHT: number;
|
295 | /**
|
296 | * NUM_NINE
|
297 | */
|
298 | NUM_NINE: number;
|
299 | /**
|
300 | * NUM_MULTIPLY
|
301 | */
|
302 | NUM_MULTIPLY: number;
|
303 | /**
|
304 | * NUM_PLUS
|
305 | */
|
306 | NUM_PLUS: number;
|
307 | /**
|
308 | * NUM_MINUS
|
309 | */
|
310 | NUM_MINUS: number;
|
311 | /**
|
312 | * NUM_PERIOD
|
313 | */
|
314 | NUM_PERIOD: number;
|
315 | /**
|
316 | * NUM_DIVISION
|
317 | */
|
318 | NUM_DIVISION: number;
|
319 | /**
|
320 | * F1
|
321 | */
|
322 | F1: number;
|
323 | /**
|
324 | * F2
|
325 | */
|
326 | F2: number;
|
327 | /**
|
328 | * F3
|
329 | */
|
330 | F3: number;
|
331 | /**
|
332 | * F4
|
333 | */
|
334 | F4: number;
|
335 | /**
|
336 | * F5
|
337 | */
|
338 | F5: number;
|
339 | /**
|
340 | * F6
|
341 | */
|
342 | F6: number;
|
343 | /**
|
344 | * F7
|
345 | */
|
346 | F7: number;
|
347 | /**
|
348 | * F8
|
349 | */
|
350 | F8: number;
|
351 | /**
|
352 | * F9
|
353 | */
|
354 | F9: number;
|
355 | /**
|
356 | * F10
|
357 | */
|
358 | F10: number;
|
359 | /**
|
360 | * F11
|
361 | */
|
362 | F11: number;
|
363 | /**
|
364 | * F12
|
365 | */
|
366 | F12: number;
|
367 | /**
|
368 | * NUMLOCK
|
369 | */
|
370 | NUMLOCK: number;
|
371 | /**
|
372 | * SEMICOLON
|
373 | */
|
374 | SEMICOLON: number;
|
375 | /**
|
376 | * DASH
|
377 | */
|
378 | DASH: number;
|
379 | /**
|
380 | * EQUALS
|
381 | */
|
382 | EQUALS: number;
|
383 | /**
|
384 | * COMMA
|
385 | */
|
386 | COMMA: number;
|
387 | /**
|
388 | * PERIOD
|
389 | */
|
390 | PERIOD: number;
|
391 | /**
|
392 | * SLASH
|
393 | */
|
394 | SLASH: number;
|
395 | /**
|
396 | * APOSTROPHE
|
397 | */
|
398 | APOSTROPHE: number;
|
399 | /**
|
400 | * SINGLE_QUOTE
|
401 | */
|
402 | SINGLE_QUOTE: number;
|
403 | /**
|
404 | * OPEN_SQUARE_BRACKET
|
405 | */
|
406 | OPEN_SQUARE_BRACKET: number;
|
407 | /**
|
408 | * BACKSLASH
|
409 | */
|
410 | BACKSLASH: number;
|
411 | /**
|
412 | * CLOSE_SQUARE_BRACKET
|
413 | */
|
414 | CLOSE_SQUARE_BRACKET: number;
|
415 | /**
|
416 | * WIN_KEY
|
417 | */
|
418 | WIN_KEY: number;
|
419 | /**
|
420 | * MAC_FF_META
|
421 | */
|
422 | MAC_FF_META: number;
|
423 | /**
|
424 | * WIN_IME
|
425 | */
|
426 | WIN_IME: number;
|
427 | /**
|
428 | * whether text and modified key is entered at the same time.
|
429 | */
|
430 | isTextModifyingKeyEvent: (e: KeyboardEvent) => boolean;
|
431 | /**
|
432 | * whether character is entered.
|
433 | */
|
434 | isCharacterKey: (keyCode: number) => boolean;
|
435 | };
|
436 | export default KeyCode;
|