always updating last keypress

This commit is contained in:
Miodec 2023-04-17 16:36:11 +02:00
parent 5e115eb34f
commit 7633155336

View file

@ -238,7 +238,6 @@ function handleSpace(): void {
Caret.updatePosition();
TestInput.incrementKeypressCount();
TestInput.pushKeypressWord(TestWords.words.currentIndex);
TestInput.updateLastKeypress();
if (Config.difficulty == "expert" || Config.difficulty == "master") {
TestLogic.fail("difficulty");
return;
@ -249,6 +248,7 @@ function handleSpace(): void {
}
Replay.addReplayEvent("submitErrorWord");
}
TestInput.updateLastKeypress();
let wordLength: number;
if (Config.mode === "zen") {