fixed word highlight mode showing words in tts funbox

This commit is contained in:
Jack 2021-08-24 20:35:35 +01:00
parent ba461c1f0c
commit 69e7bc641c
2 changed files with 3 additions and 1 deletions

View file

@ -916,7 +916,8 @@ export function setHighlightMode(mode, nosave) {
(config.funbox === "nospace" ||
config.funbox === "read_ahead" ||
config.funbox === "read_ahead_easy" ||
config.funbox === "read_ahead_hard")
config.funbox === "read_ahead_hard" ||
config.funbox === "tts")
) {
Notifications.add("Can't use word highlight with this funbox", 0);
return;

View file

@ -167,6 +167,7 @@ export async function activate(funbox) {
UpdateConfig.setKeymapMode
);
UpdateConfig.setKeymapMode("off");
UpdateConfig.setHighlightMode("letter");
Settings.groups.keymapMode.updateButton();
TestLogic.restart();
} else if (funbox === "layoutfluid") {