mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-28 17:56:09 +08:00
fix: quick single list commandline not being reverted
This fixes an issue where it was impossible to revert back to the "normal" commandline state by deleting the leading `>` character in the commandline
This commit is contained in:
parent
2bae227b63
commit
174525c6be
1 changed files with 2 additions and 0 deletions
|
|
@ -681,6 +681,7 @@ $(document).on("keydown", (e) => {
|
|||
commandLineMouseMode = false;
|
||||
if (e.key === ">" && Config.singleListCommandLine === "manual") {
|
||||
if (!isSingleListCommandLineActive()) {
|
||||
state["usingSingleList"] = true;
|
||||
useSingleListCommandLine(false);
|
||||
return;
|
||||
} else if ($("#commandLine input").val() === ">") {
|
||||
|
|
@ -699,6 +700,7 @@ $(document).on("keydown", (e) => {
|
|||
inputVal[0] !== ">"
|
||||
) {
|
||||
restoreOldCommandLine(false);
|
||||
updateSuggested();
|
||||
}
|
||||
}, 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue