diff --git a/frontend/src/ts/controllers/input-controller.ts b/frontend/src/ts/controllers/input-controller.ts index e9bd04545..f71cad6ed 100644 --- a/frontend/src/ts/controllers/input-controller.ts +++ b/frontend/src/ts/controllers/input-controller.ts @@ -286,6 +286,8 @@ async function handleSpace(): Promise { } } + TestInput.corrected.pushHistory(); + const isLastWord = TestWords.words.currentIndex === TestWords.words.length; if (TestLogic.areAllTestWordsGenerated() && isLastWord) { void TestLogic.finish(); @@ -308,8 +310,6 @@ async function handleSpace(): Promise { return; } - TestInput.corrected.pushHistory(); - if (Config.keymapMode === "react") { void KeymapEvent.flash(" ", true); }