Skip to content

Commit

Permalink
update js
Browse files Browse the repository at this point in the history
  • Loading branch information
stutxo committed Apr 3, 2024
1 parent 51f7976 commit 8afbb93
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ <h1 style="text-align: center; color: #333;">blockwars.gg</h1>
if (allowedKeys.has(event.key)) {
currentKeyPressed = true;
event.preventDefault();
if (document.activeElement instanceof HTMLButtonElement) {
document.activeElement.blur();
}
}
}, { passive: false });

Expand Down

0 comments on commit 8afbb93

Please sign in to comment.