This repository has been archived by the owner on Jul 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathkeys.ts
69 lines (69 loc) · 1.37 KB
/
keys.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
export default {
Null: '\ue000',
Cancel: '\ue001',
Abort: '\ue001',
Help: '\ue002',
Backspace: '\ue003',
Tab: '\ue004',
Clear: '\ue005',
Return: '\ue006',
Enter: '\ue007',
NumpadEnter: '\ue007',
Shift: '\ue008',
ShiftLeft: '\ue008',
ShiftRight: '\ue008',
ControlLeft: '\ue009',
ControlRight: '\ue009',
Alt: '\ue00a',
AltLeft: '\ue00a',
AltRight: '\ue00a',
Pause: '\ue00b',
Escape: '\ue00c',
Space: '\ue00d',
PageUp: '\ue00e',
PageDown: '\ue00f',
End: '\ue010',
Home: '\ue011',
ArrowLeft: '\ue012',
ArrowUp: '\ue013',
ArrowRight: '\ue014',
ArrowDown: '\ue015',
Insert: '\ue016',
Delete: '\ue017',
Semicolon: '\ue018',
Equal: '\ue019',
NumpadEqual: '\ue019',
Numpad0: '\ue01a',
Numpad1: '\ue01b',
Numpad2: '\ue01c',
Numpad3: '\ue01d',
Numpad4: '\ue01e',
Numpad5: '\ue01f',
Numpad6: '\ue020',
Numpad7: '\ue021',
Numpad8: '\ue022',
Numpad9: '\ue023',
NumpadMultiply: '\ue024',
NumpadAdd: '\ue025',
// TODO: ???
// SEPARATOR: '\ue026',
NumpadSubstract: '\ue027',
NumpadDecimal: '\ue028',
NumpadDivide: '\ue029',
F1: '\ue031',
F2: '\ue032',
F3: '\ue033',
F4: '\ue034',
F5: '\ue035',
F6: '\ue036',
F7: '\ue037',
F8: '\ue038',
F9: '\ue039',
F10: '\ue03a',
F11: '\ue03b',
F12: '\ue03c',
Meta: '\ue03d',
MetaLeft: '\ue03d',
// MetaRight has different code
Command: '\ue03d'
}