Skip to content

Commit

Permalink
Bug fix for web app
Browse files Browse the repository at this point in the history
Ensured that input is only handled if all popups are inactive.
  • Loading branch information
tomasvana10 committed May 10, 2024
1 parent 5147210 commit f50d05e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crossword_puzzle/cword_webapp/static/interaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ class Interaction {
a keybind. If this is the case, this function will process it and prevent
``this.handleStandardInput`` from running.
*/
if (this.onloadPopupToggled || this.completionPopupToggled) { return; }

let inputValue = event.key;

Expand All @@ -126,8 +127,6 @@ class Interaction {
// Ensure proper handling of the enter keybind
if (
inputValue === "Enter" &&
!this.completionPopupToggled &&
!this.onloadPopupToggled &&
!event.target.classList.contains("def") &&
event.target.tagName !== "BUTTON" &&
!event.target.classList.contains("special_button") &&
Expand Down

0 comments on commit f50d05e

Please sign in to comment.