Skip to content

Commit

Permalink
#474 ignore keydown events if any modal is open
Browse files Browse the repository at this point in the history
  • Loading branch information
klues committed Jan 28, 2025
1 parent e001323 commit 4aebe3f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vue-components/views/gridEditView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,9 @@
}, 100)
},
onKeyDown(event) {
if (this.showMultipleModal || this.showGridSettingsModal || this.showNavigateModal || this.showMoveModal || this.showTranslateModal || this.showEditModal) {
return;
}
const ctrlOrMeta = constants.IS_MAC ? event.metaKey : event.ctrlKey;
const isUndoRedo = event.key.toLocaleUpperCase() === 'Z' || event.code === 'KeyZ';
if (!event.repeat) {
Expand Down

0 comments on commit 4aebe3f

Please sign in to comment.