flashing keymap earlier instead of doing it multiple times

This commit is contained in:
Miodec 2022-09-12 11:45:49 +02:00
parent a8df6cf71d
commit 05638c5cac

View file

@ -522,6 +522,11 @@ function handleChar(
}
}
//keymap
if (Config.keymapMode === "react") {
Keymap.flashKey(char, thisCharCorrect);
}
if (!correctShiftUsed && Config.difficulty != "master") return;
//update current corrected version. if its empty then add the current char. if its not then replace the last character with the currently pressed one / add it
@ -555,9 +560,6 @@ function handleChar(
Config.stopOnError == "letter" &&
!thisCharCorrect
) {
if (Config.keymapMode === "react") {
Keymap.flashKey(char, false);
}
return;
}
@ -592,11 +594,6 @@ function handleChar(
return;
}
//keymap
if (Config.keymapMode === "react") {
Keymap.flashKey(char, thisCharCorrect);
}
if (Config.mode != "zen") {
//not applicable to zen mode
//auto stop the test if the last word is correct