only setting word to correct if highlight mode is not off

This commit is contained in:
Miodec 2022-03-10 15:00:43 +01:00
parent 746fcbe934
commit b6912c2401

View file

@ -190,7 +190,8 @@ function handleSpace(): void {
return;
}
PaceCaret.handleSpace(false, currentWord);
if (Config.blindMode) $("#words .word.active letter").addClass("correct");
if (Config.blindMode && Config.highlightMode !== "off")
$("#words .word.active letter").addClass("correct");
TestInput.input.pushHistory();
TestUI.highlightBadWord(TestUI.currentWordElementIndex, !Config.blindMode);
TestWords.words.increaseCurrentIndex();