fixed situation when user sets keymode to 'next' after setting memory mode

This commit is contained in:
a1usha 2020-11-20 14:09:42 +07:00
parent d18bd9028a
commit f00817223a

View file

@ -355,7 +355,9 @@ function activateFunbox(funbox, mode) {
setMode("words");
setShowAllLines(true, true);
restartTest(false, true);
setKeymapMode("react");
if (config.keymapMode === "next") {
setKeymapMode("react");
}
}
activeFunBox = funbox;
}
@ -893,6 +895,10 @@ $("#restartTestButton, #startTestButton").on("click", function () {
$("#wordsWrapper").addClass("hidden");
}
}, 1000);
if (config.keymapMode === "next") {
setKeymapMode("react");
}
}
});