failing test after the event was added to current input

This commit is contained in:
Jack 2020-12-21 19:08:00 +00:00
parent cf2bcb7f50
commit 07f3d7ed38

View file

@ -5036,11 +5036,6 @@ function handleAlpha(event) {
updateHighlightedKeymapKey();
}
if (!thisCharCorrect && config.difficulty == "master") {
failTest();
return;
}
if (config.stopOnError == "letter" && !thisCharCorrect) {
return;
}
@ -5055,6 +5050,11 @@ function handleAlpha(event) {
currentInput += event["key"];
}
if (!thisCharCorrect && config.difficulty == "master") {
failTest();
return;
}
activeWordTopBeforeJump = activeWordTop;
updateWordElement(!config.blindMode);