Skip to content

Commit

Permalink
feat: Add hotkeys tied to Save, Save + Restart (#1902)
Browse files Browse the repository at this point in the history
kevinkhill authored Jun 29, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent c4fd167 commit 2ab0c87
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/TheEditor.vue
Original file line number Diff line number Diff line change
@@ -7,7 +7,11 @@
hide-overlay
:transition="false"
@close="close"
@keydown.esc="escClose">
@keydown.esc="escClose"
@keydown.ctrl.shift.s.prevent="restartServiceNameExists && save(restartServiceName)"
@keydown.meta.shift.s.prevent="restartServiceNameExists && save(restartServiceName)"
@keydown.ctrl.s.prevent="save(null)"
@keydown.meta.s.prevent="save(null)">
<panel
card-class="editor-dialog"
:icon="isWriteable ? mdiFileDocumentEditOutline : mdiFileDocumentOutline"

0 comments on commit 2ab0c87

Please sign in to comment.