style(blind mode): dont highlight letters to the right of the caret when blind mode and stop on letter are enabled

closes #5387
This commit is contained in:
Miodec 2024-05-13 12:10:24 +02:00
parent c9c4d7fdc1
commit 0158292524

View file

@ -643,7 +643,9 @@ function handleChar(
Config.stopOnError === "letter" &&
!thisCharCorrect
) {
void TestUI.updateWordElement(undefined, TestInput.input.current + char);
if (!Config.blindMode) {
void TestUI.updateWordElement(undefined, TestInput.input.current + char);
}
return;
}