diff --git a/src/js/commandline-lists.js b/src/js/commandline-lists.js index 70a78d996..2ed4bfe10 100644 --- a/src/js/commandline-lists.js +++ b/src/js/commandline-lists.js @@ -702,6 +702,13 @@ let commandsKeymapLegendStyle = { let commandsHighlightMode = { title: "Change highlight mode...", list: [ + { + id: "setHighlightModeOff", + display: "off", + exec: () => { + UpdateConfig.setHighlightMode("off"); + }, + }, { id: "setHighlightModeLetter", display: "letter", diff --git a/src/js/test/test-ui.js b/src/js/test/test-ui.js index 6226473e0..1f28d5695 100644 --- a/src/js/test/test-ui.js +++ b/src/js/test/test-ui.js @@ -334,6 +334,11 @@ export function updateWordElement(showError) { charCorrect = false; } + let correctClass = "correct"; + if (Config.highlightMode == "off") { + correctClass = ""; + } + let currentLetter = currentWord[i]; let tabChar = ""; let nlChar = ""; @@ -346,11 +351,11 @@ export function updateWordElement(showError) { } if (charCorrect) { - ret += `${currentLetter}`; + ret += `${currentLetter}`; } else { if (!showError) { if (currentLetter !== undefined) { - ret += `${currentLetter}`; + ret += `${currentLetter}`; } } else { if (currentLetter == undefined) { diff --git a/static/index.html b/static/index.html index 9b5df92f0..dfca133bf 100644 --- a/static/index.html +++ b/static/index.html @@ -2839,6 +2839,14 @@ Change what is highlighted during the test.
+
+ off +