Skip to content

Commit

Permalink
Attach keyboard shortcut on window
Browse files Browse the repository at this point in the history
  • Loading branch information
hojberg committed Nov 30, 2023
1 parent 93f18e6 commit d384c91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UI/ModalOverlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ModalOverlay extends HTMLElement {

this.dispatchEvent(new CustomEvent("escape"));
}
});
};

window.addEventListener("keydown", this.onKeydown);
}
Expand Down

0 comments on commit d384c91

Please sign in to comment.