From 3e72d8dbd45c107ae7c81ff74b41d8dac1248012 Mon Sep 17 00:00:00 2001 From: Kevin Hill Date: Fri, 7 Jun 2024 16:23:02 -0700 Subject: [PATCH 1/3] adding the ability to save with hotkey combo in the editor --- src/components/TheEditor.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/TheEditor.vue b/src/components/TheEditor.vue index bc401cd33..59abc662d 100644 --- a/src/components/TheEditor.vue +++ b/src/components/TheEditor.vue @@ -7,7 +7,9 @@ hide-overlay :transition="false" @close="close" - @keydown.esc="escClose"> + @keydown.esc="escClose" + @keydown.ctrl.s.prevent="hotkeySave()" + @keydown.meta.s.prevent="hotkeySave()"> Date: Sun, 9 Jun 2024 09:17:39 -0700 Subject: [PATCH 2/3] adding key combos for save+restart --- src/components/TheEditor.vue | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/components/TheEditor.vue b/src/components/TheEditor.vue index 59abc662d..c84953da3 100644 --- a/src/components/TheEditor.vue +++ b/src/components/TheEditor.vue @@ -8,8 +8,10 @@ :transition="false" @close="close" @keydown.esc="escClose" - @keydown.ctrl.s.prevent="hotkeySave()" - @keydown.meta.s.prevent="hotkeySave()"> + @keydown.ctrl.s.prevent="save(null)" + @keydown.meta.s.prevent="save(null)" + @keydown.ctrl.shift.s.prevent="restartServiceNameExists && save(restartServiceName)" + @keydown.meta.shift.s.prevent="restartServiceNameExists && save(restartServiceName)"> Date: Sun, 9 Jun 2024 14:20:34 -0700 Subject: [PATCH 3/3] switching the order --- src/components/TheEditor.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/TheEditor.vue b/src/components/TheEditor.vue index c84953da3..e740c7db8 100644 --- a/src/components/TheEditor.vue +++ b/src/components/TheEditor.vue @@ -8,10 +8,10 @@ :transition="false" @close="close" @keydown.esc="escClose" - @keydown.ctrl.s.prevent="save(null)" - @keydown.meta.s.prevent="save(null)" @keydown.ctrl.shift.s.prevent="restartServiceNameExists && save(restartServiceName)" - @keydown.meta.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)">