diff --git a/README.md b/README.md index e702f9f..dba2add 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,6 @@ - [x] Fixed backspace bug - [x] Time trial gamemode - [x] Blur on not focused -- [ ] Alphabet gamemode +- [x] Alphabet gamemode - [ ] Pi gamemode - [ ] Multiplayer diff --git a/scripts/typing.js b/scripts/typing.js index f2ad1c8..3f28030 100644 --- a/scripts/typing.js +++ b/scripts/typing.js @@ -109,7 +109,7 @@ document.addEventListener("DOMContentLoaded", function() { } back = false; } - else if (newestChar == " " || newestChar == "Enter" || event.inputType == "insertLineBreak" || event.inputType == "insertParagraph") { + else if ((newestChar == " " || newestChar == "Enter" || event.inputType == "insertLineBreak" || event.inputType == "insertParagraph") && !document.querySelector(".timeStat")) { linesCheck(); wordsWritten++; if (nextLetter != false) {