From 6f41472a3b24faae644e485d345bef2202122c12 Mon Sep 17 00:00:00 2001 From: Miodec Date: Thu, 28 Jan 2021 19:58:26 +0000 Subject: [PATCH] fixed blind mode highlighting all letters with stop on letter enabled. fixes #884 --- src/js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/script.js b/src/js/script.js index c3cb34e42..3f2ba7f5b 100644 --- a/src/js/script.js +++ b/src/js/script.js @@ -5088,7 +5088,6 @@ function handleSpace(event, isEnter) { updateHighlightedKeymapKey(); settingsGroups.layout.updateButton(); } - if (config.blindMode) $("#words .word.active letter").addClass("correct"); dontInsertSpace = true; if (currentWord == currentInput) { //correct word @@ -5154,6 +5153,7 @@ function handleSpace(event, isEnter) { } return; } + if (config.blindMode) $("#words .word.active letter").addClass("correct"); inputHistory.push(currentInput); highlightBadWord(currentWordElementIndex, !config.blindMode); currentInput = "";