mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-30 02:39:05 +08:00
flashing keymap earlier instead of doing it multiple times
This commit is contained in:
parent
a8df6cf71d
commit
05638c5cac
1 changed files with 5 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue