From 8de99dae7b6eb72bd6833c607d3c3a5db9508ebb Mon Sep 17 00:00:00 2001 From: Fabio Di Stasio Date: Tue, 24 Dec 2024 11:03:27 +0100 Subject: [PATCH] fix: prevent delete confirmation modal from triggering on non-delete key presses, fixes #906 --- src/renderer/components/WorkspaceTabQueryTable.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer/components/WorkspaceTabQueryTable.vue b/src/renderer/components/WorkspaceTabQueryTable.vue index 33cb6498..b338403f 100644 --- a/src/renderer/components/WorkspaceTabQueryTable.vue +++ b/src/renderer/components/WorkspaceTabQueryTable.vue @@ -538,6 +538,7 @@ const closeContext = () => { }; const showDeleteConfirmModal = (e: any) => { + if (e.code !== 'Delete') return; if (e && e.path && ['INPUT', 'TEXTAREA', 'SELECT'].includes(e.path[0].tagName)) return; if (selectedRows.value.length === 0) return;