From b6912c2401e9d5b1042cd01e7343d2d77bd36a54 Mon Sep 17 00:00:00 2001 From: Miodec Date: Thu, 10 Mar 2022 15:00:43 +0100 Subject: [PATCH] only setting word to correct if highlight mode is not off --- frontend/src/scripts/controllers/input-controller.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/scripts/controllers/input-controller.ts b/frontend/src/scripts/controllers/input-controller.ts index 1f5f2da00..4d3659848 100644 --- a/frontend/src/scripts/controllers/input-controller.ts +++ b/frontend/src/scripts/controllers/input-controller.ts @@ -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();