Skip to content

Commit

Permalink
fix: update key bindings logic as per new Structure (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
maharshivpatel authored Aug 27, 2024
2 parents 154d30b + 7b660b1 commit 4f6e6c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 4f6e6c6

Please sign in to comment.