diff --git a/src/js/script.js b/src/js/script.js index 8974f0881..08c7ab1a5 100644 --- a/src/js/script.js +++ b/src/js/script.js @@ -331,6 +331,11 @@ async function activateFunbox(funbox, mode) { settingsGroups.keymapMode.updateButton(); restartTest(); } + + if (funbox === "read_ahead") { + setHighlightMode("letter", true); + restartTest(); + } } else if (mode === "script") { if (funbox === "tts") { $("#funBoxTheme").attr("href", `funbox/simon_says.css`); diff --git a/src/js/userconfig.js b/src/js/userconfig.js index fc0d64499..b931498cd 100644 --- a/src/js/userconfig.js +++ b/src/js/userconfig.js @@ -810,8 +810,11 @@ function toggleShowLiveAcc() { } function setHighlightMode(mode, nosave) { - if (activeFunBox === "nospace" && mode === "word") { - Misc.showNotification("Can't use word highlight with nospace funbox", 3000); + if ( + mode === "word" && + (activeFunBox === "nospace" || activeFunBox === "read_ahead") + ) { + Misc.showNotification("Can't use word highlight with this funbox", 3000); return; } if (mode == null || mode == undefined) {