fixed backspace events not working correctly in replays

This commit is contained in:
Miodec 2023-01-08 12:58:20 +01:00
parent 8e54176b0f
commit eb6254a340

View file

@ -1053,7 +1053,7 @@ $("#wordsInput").on("input", (event) => {
TestUI.updateWordElement();
Caret.updatePosition();
if (!CompositionState.getComposing()) {
Replay.addReplayEvent("setLetterIndex", currTestInput.length);
Replay.addReplayEvent("setLetterIndex", currTestInput.length - 1);
}
} else if (inputValue !== currTestInput) {
let diffStart = 0;