From 76331553360eca0f543db7262896dc28b5114bfb Mon Sep 17 00:00:00 2001 From: Miodec Date: Mon, 17 Apr 2023 16:36:11 +0200 Subject: [PATCH] always updating last keypress --- frontend/src/ts/controllers/input-controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/ts/controllers/input-controller.ts b/frontend/src/ts/controllers/input-controller.ts index c9c527cd9..f732593a9 100644 --- a/frontend/src/ts/controllers/input-controller.ts +++ b/frontend/src/ts/controllers/input-controller.ts @@ -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") {