-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.ts
109 lines (101 loc) · 2.42 KB
/
index.ts
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
export const BACKSPACE = 8;
export const TAB = 9;
export const ENTER = 13;
export const SHIFT = 16;
export const CTRL = 17;
export const ALT = 18;
export const PAUSE = 19;
export const CAPSLOCK = 20;
export const ESCAPE = 27;
export const SPACE = 32;
export const PAGEUP = 33;
export const PAGEDOWN = 34;
export const END = 35;
export const HOME = 36;
export const LEFT = 37;
export const UP = 38;
export const RIGHT = 39;
export const DOWN = 40;
export const INSERT = 45;
export const DELETE = 46;
// numbers
export const KEY_0 = 48;
export const KEY_1 = 49;
export const KEY_2 = 50;
export const KEY_3 = 51;
export const KEY_4 = 52;
export const KEY_5 = 53;
export const KEY_6 = 54;
export const KEY_7 = 55;
export const KEY_8 = 56;
export const KEY_9 = 57;
// alphabet
export const A = 65;
export const B = 66;
export const C = 67;
export const D = 68;
export const E = 69;
export const F = 70;
export const G = 71;
export const H = 72;
export const I = 73;
export const J = 74;
export const K = 75;
export const L = 76;
export const M = 77;
export const N = 78;
export const O = 79;
export const P = 80;
export const Q = 81;
export const R = 82;
export const S = 83;
export const T = 84;
export const U = 85;
export const V = 86;
export const W = 87;
export const X = 88;
export const Y = 89;
export const Z = 90;
export const SELECT = 93;
export const NUMPAD_0 = 96;
export const NUMPAD_1 = 97;
export const NUMPAD_2 = 98;
export const NUMPAD_3 = 99;
export const NUMPAD_4 = 100;
export const NUMPAD_5 = 101;
export const NUMPAD_6 = 102;
export const NUMPAD_7 = 103;
export const NUMPAD_8 = 104;
export const NUMPAD_9 = 105;
export const MULTIPLY = 106;
export const ADD = 107;
export const SUBTRACT = 109;
export const DECIMALPOINT = 110;
export const DIVIDE = 111;
// F1~F2
export const F1 = 112;
export const F2 = 113;
export const F3 = 114;
export const F4 = 115;
export const F5 = 116;
export const F6 = 117;
export const F7 = 118;
export const F8 = 119;
export const F9 = 120;
export const F10 = 121;
export const F11 = 122;
export const F12 = 123;
// etc / accents
export const NUMLOCK = 144;
export const SCROLLLOCK = 145;
export const SEMICOLON = 186;
export const EQUALSIGN = 187;
export const COMMA = 188;
export const DASH = 189;
export const PERIOD = 190;
export const FORWARDSLASH = 191;
export const GRAVEACCENT = 192;
export const OPENBRACKET = 219;
export const BACKSLASH = 220;
export const CLOSEBRAKET = 221;
export const SINGLEQUOTE = 222;