diff --git a/print_designer/public/js/print_designer/composables/AttachKeyBindings.js b/print_designer/public/js/print_designer/composables/AttachKeyBindings.js index 105c88e..d7edc2f 100644 --- a/print_designer/public/js/print_designer/composables/AttachKeyBindings.js +++ b/print_designer/public/js/print_designer/composables/AttachKeyBindings.js @@ -45,7 +45,7 @@ export function useAttachKeyBindings() { const handleKeyDown = async (e) => { MainStore.isAltKey = e.altKey; MainStore.isShiftKey = e.shiftKey; - if (e.target !== document.body || MainStore.openModal) return; + if (!e.target.classList.contains("print-format-container") || MainStore.openModal) return; if (e.ctrlKey || e.metaKey) { if (["a", "A"].indexOf(e.key) != -1) { ElementStore.Elements.forEach((page) => {