mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-04 21:09:18 +08:00
fixed situation when user sets keymode to 'next' after setting memory mode
This commit is contained in:
parent
d18bd9028a
commit
f00817223a
1 changed files with 7 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue