Reimplemented the funbox fix

This commit is contained in:
David Martin 2020-10-26 05:06:09 -05:00
parent b4944c748a
commit ccbbda3858
2 changed files with 4 additions and 4 deletions

View file

@ -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();

View file

@ -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);