diff --git a/frontend/src/ts/controllers/input-controller.ts b/frontend/src/ts/controllers/input-controller.ts index 994d560d5..aeb23efff 100644 --- a/frontend/src/ts/controllers/input-controller.ts +++ b/frontend/src/ts/controllers/input-controller.ts @@ -1186,7 +1186,8 @@ $("#wordsInput").on("input", (event) => { if (!CompositionState.getComposing()) { Replay.addReplayEvent("setLetterIndex", currTestInput.length - 1); } - } else if (inputValue !== currTestInput) { + } + if (inputValue !== currTestInput) { let diffStart = 0; while (inputValue[diffStart] === currTestInput[diffStart]) { diffStart++; @@ -1202,6 +1203,8 @@ $("#wordsInput").on("input", (event) => { } } + console.log(TestInput.input.current); + setWordsInput(" " + TestInput.input.current); updateUI(); if (Config.tapeMode !== "off") {