From 586f901bae9a80c0e53ac1d804cbae3f05e26d8e Mon Sep 17 00:00:00 2001 From: Fabio Di Stasio Date: Fri, 23 Feb 2024 18:08:02 +0100 Subject: [PATCH 1/2] fix: delete record modal pressing del when editing a field, fixes #767 --- src/renderer/components/WorkspaceTabQueryTableRow.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/renderer/components/WorkspaceTabQueryTableRow.vue b/src/renderer/components/WorkspaceTabQueryTableRow.vue index e201ad96..62b8f7cf 100644 --- a/src/renderer/components/WorkspaceTabQueryTableRow.vue +++ b/src/renderer/components/WorkspaceTabQueryTableRow.vue @@ -43,6 +43,7 @@ autofocus class="editable-field form-input input-sm px-1" @blur="editOFF" + @keyup.delete.stop > From 8500fc40a1ddc0bd2353f1ee3595eba2875a6bb0 Mon Sep 17 00:00:00 2001 From: Fabio Di Stasio Date: Mon, 26 Feb 2024 18:17:15 +0100 Subject: [PATCH 2/2] refactor: improved note tab selection --- src/renderer/stores/application.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/renderer/stores/application.ts b/src/renderer/stores/application.ts index 5250aba1..14f6658f 100644 --- a/src/renderer/stores/application.ts +++ b/src/renderer/stores/application.ts @@ -55,10 +55,9 @@ export const useApplicationStore = defineStore('application', { }, showScratchpad (tag?: string) { this.isScratchpad = true; - if (tag) { - const { selectedTag } = storeToRefs(useScratchpadStore()); - selectedTag.value = tag; - } + if (!tag) tag = 'all'; + const { selectedTag } = storeToRefs(useScratchpadStore()); + selectedTag.value = tag; }, hideScratchpad () { this.isScratchpad = false;