mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-11 08:14:11 +08:00
fixed a bug where pretting an incorrect key then removing it and pressing space would cause a console error
This commit is contained in:
parent
644b292d4b
commit
d208013aa5
1 changed files with 1 additions and 2 deletions
|
@ -3406,7 +3406,6 @@ $(document).keydown((event) => {
|
|||
}
|
||||
compareInput(!config.blindMode);
|
||||
}
|
||||
// currentKeypressCount++;
|
||||
if (config.keymapMode === "react") {
|
||||
flashPressedKeymapKey(event.code, true);
|
||||
} else if (config.keymapMode === "next") {
|
||||
|
@ -3569,7 +3568,7 @@ $(document).keydown((event) => {
|
|||
if (cil < wordsList[currentWordIndex].length) {
|
||||
if (cil >= currentCorrected.length) {
|
||||
currentCorrected += "_";
|
||||
} else if (!thisCharCorrect) {
|
||||
} else {
|
||||
currentCorrected =
|
||||
currentCorrected.substring(0, cil) +
|
||||
"_" +
|
||||
|
|
Loading…
Reference in a new issue