Skip to content

Commit

Permalink
fix: prevent delete confirmation modal from triggering on non-delete …
Browse files Browse the repository at this point in the history
…key presses, fixes #906
  • Loading branch information
Fabio286 committed Dec 24, 2024
1 parent 2bd69c6 commit 8de99da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/renderer/components/WorkspaceTabQueryTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8de99da

Please sign in to comment.