Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 32d4b1d

Browse files
fix: keydown
1 parent c45c382 commit 32d4b1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎065-hangman game/script.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function showNotification() {
8888
}, 2000);
8989
}
9090

91-
window.addEventListener("keypress", (e) => {
91+
window.addEventListener("keydown", (e) => {
9292
if (playable) {
9393
const letter = e.key.toLowerCase();
9494
if (letter >= "a" && letter <= "z") {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /