|
75 | 75 | <EditorProjectPreferencesKeyboardItem |
76 | 76 | :title="t('editor.aside.configuration.autosave')" |
77 | 77 | shortcut="CTRL + S" |
78 | | - /> |
| 78 | + > |
| 79 | + <InputBoolean v-model="SHORTCUTS.ctrlS" /> |
| 80 | + </EditorProjectPreferencesKeyboardItem> |
79 | 81 | <EditorProjectPreferencesKeyboardItem |
80 | 82 | :title="t('editor.aside.configuration.cloudAutosave')" |
81 | 83 | shortcut="CTRL + SHIFT + S" |
82 | 84 | /> |
83 | 85 | <EditorProjectPreferencesKeyboardItem |
84 | 86 | :title="t('editor.bar.pdf.generate')" |
85 | 87 | shortcut="CTRL + SHIFT + P" |
86 | | - /> |
| 88 | + > |
| 89 | + <InputBoolean v-model="SHORTCUTS.ctrlShiftP" /> |
| 90 | + </EditorProjectPreferencesKeyboardItem> |
87 | 91 | <EditorProjectPreferencesKeyboardItem |
88 | 92 | :title="t('editor.bar.epub.generate')" |
89 | 93 | shortcut="CTRL + SHIFT + E" |
90 | | - /> |
| 94 | + > |
| 95 | + <InputBoolean v-model="SHORTCUTS.ctrlShiftE" /> |
| 96 | + </EditorProjectPreferencesKeyboardItem> |
91 | 97 | <EditorProjectPreferencesKeyboardItem |
92 | 98 | :title="t('editor.bar.html.generate')" |
93 | 99 | shortcut="CTRL + SHIFT + H" |
94 | | - /> |
| 100 | + > |
| 101 | + <InputBoolean v-model="SHORTCUTS.ctrlShiftH" /> |
| 102 | + </EditorProjectPreferencesKeyboardItem> |
95 | 103 | <EditorProjectPreferencesKeyboardItem |
96 | 104 | :title="t('editor.bar.txt.generate')" |
97 | 105 | shortcut="CTRL + SHIFT + T" |
98 | | - /> |
| 106 | + > |
| 107 | + <InputBoolean v-model="SHORTCUTS.ctrlShiftT" /> |
| 108 | + </EditorProjectPreferencesKeyboardItem> |
99 | 109 | </div> |
100 | 110 | </EditorProjectPreferencesContainerSlot> |
101 | 111 | </template> |
102 | 112 |
|
103 | 113 | <script setup lang="ts"> |
| 114 | + import { useShortcutsStore } from '@/store/shortcuts' |
104 | 115 | import { useI18n } from 'vue-i18n' |
105 | 116 |
|
| 117 | + const SHORTCUTS = useShortcutsStore() |
| 118 | +
|
106 | 119 | const { t } = useI18n() |
107 | 120 | </script> |
0 commit comments