1 | var _a;
|
2 | import { KeyCodes } from './KeyCodes';
|
3 | var DirectionalKeyCodes = (_a = {},
|
4 | _a[KeyCodes.up] = 1,
|
5 | _a[KeyCodes.down] = 1,
|
6 | _a[KeyCodes.left] = 1,
|
7 | _a[KeyCodes.right] = 1,
|
8 | _a[KeyCodes.home] = 1,
|
9 | _a[KeyCodes.end] = 1,
|
10 | _a[KeyCodes.tab] = 1,
|
11 | _a[KeyCodes.pageUp] = 1,
|
12 | _a[KeyCodes.pageDown] = 1,
|
13 | _a);
|
14 |
|
15 |
|
16 |
|
17 | export function isDirectionalKeyCode(which) {
|
18 | return !!DirectionalKeyCodes[which];
|
19 | }
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | export function addDirectionalKeyCode(which) {
|
26 | DirectionalKeyCodes[which] = 1;
|
27 | }
|
28 |
|
\ | No newline at end of file |