mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-10 14:10:59 +08:00
fix(stop on error): inconsistent error highlighting behavior
This commit is contained in:
parent
1579aeca3d
commit
a708eadb34
1 changed files with 2 additions and 4 deletions
|
|
@ -211,7 +211,7 @@ function handleSpace(): void {
|
|||
void MonkeyPower.addPower(isWordCorrect, true);
|
||||
TestInput.incrementAccuracy(isWordCorrect);
|
||||
if (isWordCorrect) {
|
||||
if (Config.indicateTypos !== "off" && Config.stopOnError === "letter") {
|
||||
if (Config.stopOnError === "letter") {
|
||||
void TestUI.updateWordElement();
|
||||
}
|
||||
PaceCaret.handleSpace(true, currentWord);
|
||||
|
|
@ -643,9 +643,7 @@ function handleChar(
|
|||
Config.stopOnError === "letter" &&
|
||||
!thisCharCorrect
|
||||
) {
|
||||
if (Config.indicateTypos !== "off") {
|
||||
void TestUI.updateWordElement(undefined, TestInput.input.current + char);
|
||||
}
|
||||
void TestUI.updateWordElement(undefined, TestInput.input.current + char);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue