mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 13:27:49 +08:00
updating keymap after input was added
This commit is contained in:
parent
ce2705fef0
commit
b5d5a18984
1 changed files with 7 additions and 7 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue