fixed blind mode highlighting all letters with stop on letter enabled. fixes #884

This commit is contained in:
Miodec 2021-01-28 19:58:26 +00:00
parent 9a5327646d
commit 6f41472a3b

View file

@ -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 = "";