fixed error on enabling layoutfluid

This commit is contained in:
Octahedron 2020-08-04 08:23:56 -04:00
parent e128c1e93c
commit 4024c492e4

View file

@ -170,9 +170,9 @@ function activateFunbox(funbox, mode) {
changeKeymapMode("next");
settingsGroups.keymapMode.updateButton();
changeLayout("qwerty");
setActiveLayoutButton();
settingsGroups.layout.updateButton();
changeKeymapLayout("qwerty");
setActiveKeymapLayoutButton();
settingsGroups.keymapLayout.updateButton();
restartTest();
}
activeFunBox = funbox;
@ -1932,7 +1932,7 @@ function startTest() {
changeLayout(layouts[index]);
changeKeymapLayout(layouts[index]);
updateHighlightedKeymapKey();
setActiveLayoutButton();
settingsGroups.layout.updateButton();
}
// console.timeEnd("livewpm");
@ -2073,9 +2073,9 @@ function restartTest(withSameWordset = false) {
if (activeFunBox === "layoutfluid") {
changeLayout("qwerty");
setActiveLayoutButton();
settingsGroups.layout.updateButton();
changeKeymapLayout("qwerty");
setActiveKeymapLayoutButton();
settingsGroups.keymapLayout.updateButton();
updateHighlightedKeymapKey();
}