diff --git a/src/js/script.js b/src/js/script.js index 92ce15b43..ca8741a65 100644 --- a/src/js/script.js +++ b/src/js/script.js @@ -5029,13 +5029,6 @@ function handleAlpha(event) { currentKeypress.count++; currentKeypress.words.push(currentWordIndex); - //keymap - if (config.keymapMode === "react") { - flashPressedKeymapKey(event.key, thisCharCorrect); - } else if (config.keymapMode === "next") { - updateHighlightedKeymapKey(); - } - if (config.stopOnError == "letter" && !thisCharCorrect) { return; } @@ -5055,6 +5048,13 @@ function handleAlpha(event) { return; } + //keymap + if (config.keymapMode === "react") { + flashPressedKeymapKey(event.key, thisCharCorrect); + } else if (config.keymapMode === "next") { + updateHighlightedKeymapKey(); + } + activeWordTopBeforeJump = activeWordTop; updateWordElement(!config.blindMode);