From 07f3d7ed385cc26d613a982fd1d9b4219fca985b Mon Sep 17 00:00:00 2001 From: Jack Date: Mon, 21 Dec 2020 19:08:00 +0000 Subject: [PATCH] failing test after the event was added to current input --- src/js/script.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/js/script.js b/src/js/script.js index 31ae94e9f..92ce15b43 100644 --- a/src/js/script.js +++ b/src/js/script.js @@ -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);