From 79a3b3edb61f10d4f8e5117842ded7a5d0edae41 Mon Sep 17 00:00:00 2001 From: Miodec Date: Fri, 14 Jul 2023 12:21:38 +0200 Subject: [PATCH] always checking if input value is different than current test input should help with #4407, maybe #4389 and --- frontend/src/ts/controllers/input-controller.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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") {