mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 13:27:49 +08:00
Reimplemented the funbox fix
This commit is contained in:
parent
b4944c748a
commit
ccbbda3858
2 changed files with 4 additions and 4 deletions
|
@ -45,7 +45,6 @@ let verifyUserWhenLoggedIn = null;
|
|||
let modeBeforePractise = null;
|
||||
let memoryFunboxTimer = null;
|
||||
let memoryFunboxInterval = null;
|
||||
let memoryFunboxKeyboardLayout = config.layout;
|
||||
|
||||
let themeColors = {
|
||||
bg: "#323437",
|
||||
|
@ -330,7 +329,7 @@ function activateFunbox(funbox, mode) {
|
|||
config.keymapMode = "on";
|
||||
changeKeymapMode("next");
|
||||
settingsGroups.keymapMode.updateButton();
|
||||
memoryFunboxKeyboardLayout = config.layout;
|
||||
config.layoutBeforeLayoutfluid = config.layout;
|
||||
changeLayout("qwerty");
|
||||
settingsGroups.layout.updateButton();
|
||||
changeKeymapLayout("qwerty");
|
||||
|
@ -346,7 +345,7 @@ function activateFunbox(funbox, mode) {
|
|||
|
||||
if (funbox !== "layoutfluid" || mode !== "script") {
|
||||
if (config.layout !== memoryFunboxKeyboardLayout) {
|
||||
changeLayout(memoryFunboxKeyboardLayout);
|
||||
changeLayout(config.layoutBeforeLayoutfluid);
|
||||
}
|
||||
}
|
||||
updateTestModesNotice();
|
||||
|
|
|
@ -37,6 +37,7 @@ let defaultConfig = {
|
|||
flipTestColors: false,
|
||||
capsLockBackspace: false,
|
||||
layout: "default",
|
||||
layoutBeforeLayoutfluid: "default",
|
||||
confidenceMode: "off",
|
||||
indicateTypos: false,
|
||||
timerStyle: "text",
|
||||
|
@ -166,7 +167,7 @@ function applyConfig(configObj) {
|
|||
changeWordCount(configObj.words, true);
|
||||
changeLanguage(configObj.language, true);
|
||||
setCapsLockBackspace(configObj.capsLockBackspace, true);
|
||||
changeLayout(configObj.layout, true);
|
||||
changeLayout(configObj.layoutBeforeLayoutfluid, true);
|
||||
changeFontSize(configObj.fontSize, true);
|
||||
setFreedomMode(configObj.freedomMode, true);
|
||||
setCaretStyle(configObj.caretStyle, true);
|
||||
|
|
Loading…
Reference in a new issue