mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-06 05:43:47 +08:00
Revert "Fix swapEscAndTab sometimes failing on Esc"
This reverts commit 4d8ba85b83
.
This commit is contained in:
parent
4d8ba85b83
commit
fb726076e7
1 changed files with 19 additions and 18 deletions
|
@ -1777,26 +1777,27 @@ $(document).ready((e) => {
|
|||
event.preventDefault();
|
||||
hideLeaderboards();
|
||||
return;
|
||||
} else if (event.keyCode == 9 || !config.swapEscAndTab) {
|
||||
if ($("#commandLineWrapper").hasClass("hidden")) {
|
||||
if (config.singleListCommandLine == "on")
|
||||
useSingleListCommandLine(false);
|
||||
else currentCommands = [commands];
|
||||
} else if (
|
||||
$("#commandLineWrapper").hasClass("hidden") &&
|
||||
(event.keyCode == 9 || !config.swapEscAndTab)
|
||||
) {
|
||||
if (config.singleListCommandLine == "on")
|
||||
useSingleListCommandLine(false);
|
||||
else currentCommands = [commands];
|
||||
showCommandLine();
|
||||
} else {
|
||||
if (currentCommands.length > 1) {
|
||||
currentCommands.pop();
|
||||
$("#commandLine").removeClass("allCommands");
|
||||
showCommandLine();
|
||||
} else {
|
||||
if (currentCommands.length > 1) {
|
||||
currentCommands.pop();
|
||||
$("#commandLine").removeClass("allCommands");
|
||||
showCommandLine();
|
||||
} else {
|
||||
hideCommandLine();
|
||||
}
|
||||
setFontFamily(config.fontFamily, true);
|
||||
if (config.customTheme === true) {
|
||||
applyCustomThemeColors();
|
||||
} else {
|
||||
setTheme(config.theme);
|
||||
}
|
||||
hideCommandLine();
|
||||
}
|
||||
setFontFamily(config.fontFamily, true);
|
||||
if (config.customTheme === true) {
|
||||
applyCustomThemeColors();
|
||||
} else {
|
||||
setTheme(config.theme);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue