-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathshortcut.const.ts
More file actions
108 lines (106 loc) · 2.27 KB
/
Copy pathshortcut.const.ts
File metadata and controls
108 lines (106 loc) · 2.27 KB
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
import { ShortcutOptions } from './shortcut.model';
interface Shortcut {
[key: string]: ShortcutOptions;
}
export const SHORTCUTS: Shortcut = {
addCollection: {
description: 'Add Collection',
id: 'add-collection-button-shortcut',
targetKey: ['c'],
targetKeyLabel: 'Collection "C"',
modifierType: 'none',
},
addRelation: {
description: 'Add Relation',
id: 'add-relation-button-shortcut',
targetKey: ['r'],
targetKeyLabel: 'Relation "R"',
modifierType: 'none',
},
delete: {
description: 'Delete',
id: 'delete-button-shortcut',
targetKey: ['backspace'],
targetKeyLabel: 'Backspace',
modifierType: 'none',
},
export: {
description: 'Export',
id: 'export-button-shortcut',
targetKey: ['e'],
targetKeyLabel: 'E',
},
new: {
description: 'New',
id: 'new-button-shortcut',
targetKey: ['n'],
targetKeyLabel: 'N',
modifierType: 'alt',
},
open: {
description: 'Open',
id: 'open-button-shortcut',
targetKey: ['o'],
targetKeyLabel: 'O',
},
redo: {
description: 'Redo',
id: 'redo-button-shortcut',
targetKey: ['y'],
targetKeyLabel: 'Y',
},
save: {
description: 'Save',
id: 'save-button-shortcut',
targetKey: ['s'],
targetKeyLabel: 'S',
},
settings: {
description: 'Settings',
id: 'settings-button-shortcut',
targetKey: [','],
targetKeyLabel: ',',
},
undo: {
description: 'Undo',
id: 'undo-button-shortcut',
targetKey: ['z'],
targetKeyLabel: 'Z',
},
zoomIn: {
description: 'Zoom In',
id: 'zoom-in-button-shortcut',
targetKey: ['=', '+'],
targetKeyLabel: '"+"',
},
zoomOut: {
description: 'Zoom Out',
id: 'zoom-out-button-shortcut',
targetKey: ['-', '-'],
targetKeyLabel: '"-"',
},
duplicate: {
description: 'Duplicate',
id: 'duplicate-button-shortcut',
targetKey: ['d'],
targetKeyLabel: 'D',
},
copy: {
description: 'Copy',
id: 'copy-button-shortcut',
targetKey: ['c'],
targetKeyLabel: 'C',
},
paste: {
description: 'Paste',
id: 'paste-button-shortcut',
targetKey: ['v'],
targetKeyLabel: 'V',
},
import: {
description: 'Import',
id: 'import-button-shortcut',
targetKey: ['i'],
targetKeyLabel: 'I',
},
};