always checking if input value is different than current test input

should help with #4407, maybe #4389 and
This commit is contained in:
Miodec 2023-07-14 12:21:38 +02:00
parent 46f4c69e5f
commit 79a3b3edb6

View file

@ -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") {