|
1 | 1 | import { ShortcutOptions } from './shortcut.model'; |
2 | 2 |
|
3 | 3 | interface Shortcut { |
4 | | - [key: string]: ShortcutOptions; |
| 4 | + [key: string]: ShortcutOptions; |
5 | 5 | } |
6 | 6 |
|
7 | 7 | export const SHORTCUTS: Shortcut = { |
8 | | - addCollection: { |
9 | | - description: 'Add Collection', |
10 | | - id: 'add-collection-button-shortcut', |
11 | | - targetKey: ['c'], |
12 | | - targetKeyLabel: 'C', |
13 | | - }, |
14 | | - addRelation: { |
15 | | - description: 'Add Relation', |
16 | | - id: 'add-relation-button-shortcut', |
17 | | - targetKey: ['r'], |
18 | | - targetKeyLabel: 'R', |
19 | | - }, |
20 | | - delete: { |
21 | | - description: 'Delete', |
22 | | - id: 'delete-button-shortcut', |
23 | | - targetKey: ['backspace'], |
24 | | - targetKeyLabel: 'Backspace', |
25 | | - }, |
26 | | - export: { |
27 | | - description: 'Export', |
28 | | - id: 'export-button-shortcut', |
29 | | - targetKey: ['e'], |
30 | | - targetKeyLabel: 'E', |
31 | | - }, |
32 | | - new: { |
33 | | - description: 'New', |
34 | | - id: 'new-button-shortcut', |
35 | | - targetKey: ['n'], |
36 | | - targetKeyLabel: 'N', |
37 | | - }, |
38 | | - open: { |
39 | | - description: 'Open', |
40 | | - id: 'open-button-shortcut', |
41 | | - targetKey: ['o'], |
42 | | - targetKeyLabel: 'O', |
43 | | - }, |
44 | | - redo: { |
45 | | - description: 'Redo', |
46 | | - id: 'redo-button-shortcut', |
47 | | - targetKey: ['y'], |
48 | | - targetKeyLabel: 'Y', |
49 | | - }, |
50 | | - save: { |
51 | | - description: 'Save', |
52 | | - id: 'save-button-shortcut', |
53 | | - targetKey: ['s'], |
54 | | - targetKeyLabel: 'S', |
55 | | - }, |
56 | | - settings: { |
57 | | - description: 'Settings', |
58 | | - id: 'settings-button-shortcut', |
59 | | - targetKey: ['t'], |
60 | | - targetKeyLabel: 'T', |
61 | | - }, |
62 | | - undo: { |
63 | | - description: 'Undo', |
64 | | - id: 'undo-button-shortcut', |
65 | | - targetKey: ['z'], |
66 | | - targetKeyLabel: 'Z', |
67 | | - }, |
68 | | - zoomIn: { |
69 | | - description: 'Zoom In', |
70 | | - id: 'zoom-in-button-shortcut', |
71 | | - targetKey: ['=', '+'], |
72 | | - targetKeyLabel: '"+"', |
73 | | - }, |
74 | | - zoomOut: { |
75 | | - description: 'Zoom Out', |
76 | | - id: 'zoom-out-button-shortcut', |
77 | | - targetKey: ['-', '-'], |
78 | | - targetKeyLabel: '"-"', |
79 | | - }, |
80 | | - duplicate: { |
81 | | - description: 'Duplicate', |
82 | | - id: 'duplicate-button-shortcut', |
83 | | - targetKey: ['d'], |
84 | | - targetKeyLabel: 'D', |
85 | | - }, |
86 | | - copy: { |
87 | | - description: 'Copy', |
88 | | - id: 'copy-button-shortcut', |
89 | | - targetKey: ['c'], |
90 | | - targetKeyLabel: 'C', |
91 | | - }, |
92 | | - paste: { |
93 | | - description: 'Paste', |
94 | | - id: 'paste-button-shortcut', |
95 | | - targetKey: ['v'], |
96 | | - targetKeyLabel: 'V', |
97 | | - }, |
98 | | - import: { |
99 | | - description: 'Import', |
100 | | - id: 'import-button-shortcut', |
101 | | - targetKey: ['i'], |
102 | | - targetKeyLabel: 'I', |
103 | | - }, |
| 8 | + addCollection: { |
| 9 | + description: 'Add Collection', |
| 10 | + id: 'add-collection-button-shortcut', |
| 11 | + targetKey: ['c'], |
| 12 | + targetKeyLabel: 'Collection "C"', |
| 13 | + modifierType: 'none', |
| 14 | + }, |
| 15 | + addRelation: { |
| 16 | + description: 'Add Relation', |
| 17 | + id: 'add-relation-button-shortcut', |
| 18 | + targetKey: ['r'], |
| 19 | + targetKeyLabel: 'Relation "R"', |
| 20 | + modifierType: 'none', |
| 21 | + }, |
| 22 | + delete: { |
| 23 | + description: 'Delete', |
| 24 | + id: 'delete-button-shortcut', |
| 25 | + targetKey: ['backspace'], |
| 26 | + targetKeyLabel: 'Backspace', |
| 27 | + modifierType: 'none', |
| 28 | + }, |
| 29 | + export: { |
| 30 | + description: 'Export', |
| 31 | + id: 'export-button-shortcut', |
| 32 | + targetKey: ['e'], |
| 33 | + targetKeyLabel: 'E', |
| 34 | + }, |
| 35 | + new: { |
| 36 | + description: 'New', |
| 37 | + id: 'new-button-shortcut', |
| 38 | + targetKey: ['n'], |
| 39 | + targetKeyLabel: 'N', |
| 40 | + modifierType: 'alt', |
| 41 | + }, |
| 42 | + open: { |
| 43 | + description: 'Open', |
| 44 | + id: 'open-button-shortcut', |
| 45 | + targetKey: ['o'], |
| 46 | + targetKeyLabel: 'O', |
| 47 | + }, |
| 48 | + redo: { |
| 49 | + description: 'Redo', |
| 50 | + id: 'redo-button-shortcut', |
| 51 | + targetKey: ['y'], |
| 52 | + targetKeyLabel: 'Y', |
| 53 | + }, |
| 54 | + save: { |
| 55 | + description: 'Save', |
| 56 | + id: 'save-button-shortcut', |
| 57 | + targetKey: ['s'], |
| 58 | + targetKeyLabel: 'S', |
| 59 | + }, |
| 60 | + settings: { |
| 61 | + description: 'Settings', |
| 62 | + id: 'settings-button-shortcut', |
| 63 | + targetKey: [','], |
| 64 | + targetKeyLabel: ',', |
| 65 | + }, |
| 66 | + undo: { |
| 67 | + description: 'Undo', |
| 68 | + id: 'undo-button-shortcut', |
| 69 | + targetKey: ['z'], |
| 70 | + targetKeyLabel: 'Z', |
| 71 | + }, |
| 72 | + zoomIn: { |
| 73 | + description: 'Zoom In', |
| 74 | + id: 'zoom-in-button-shortcut', |
| 75 | + targetKey: ['=', '+'], |
| 76 | + targetKeyLabel: '"+"', |
| 77 | + }, |
| 78 | + zoomOut: { |
| 79 | + description: 'Zoom Out', |
| 80 | + id: 'zoom-out-button-shortcut', |
| 81 | + targetKey: ['-', '-'], |
| 82 | + targetKeyLabel: '"-"', |
| 83 | + }, |
| 84 | + duplicate: { |
| 85 | + description: 'Duplicate', |
| 86 | + id: 'duplicate-button-shortcut', |
| 87 | + targetKey: ['d'], |
| 88 | + targetKeyLabel: 'D', |
| 89 | + }, |
| 90 | + copy: { |
| 91 | + description: 'Copy', |
| 92 | + id: 'copy-button-shortcut', |
| 93 | + targetKey: ['c'], |
| 94 | + targetKeyLabel: 'C', |
| 95 | + }, |
| 96 | + paste: { |
| 97 | + description: 'Paste', |
| 98 | + id: 'paste-button-shortcut', |
| 99 | + targetKey: ['v'], |
| 100 | + targetKeyLabel: 'V', |
| 101 | + }, |
| 102 | + import: { |
| 103 | + description: 'Import', |
| 104 | + id: 'import-button-shortcut', |
| 105 | + targetKey: ['i'], |
| 106 | + targetKeyLabel: 'I', |
| 107 | + }, |
104 | 108 | }; |
0 commit comments