updating keymap after input was added

This commit is contained in:
Jack 2020-12-21 19:29:50 +00:00
parent ce2705fef0
commit b5d5a18984

View file

@ -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);