mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-03 04:19:06 +08:00
fixed error on enabling layoutfluid
This commit is contained in:
parent
e128c1e93c
commit
4024c492e4
1 changed files with 5 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue