mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-13 15:36:42 +08:00
fixed commandline not reacting to deleting > symbol correctly
This commit is contained in:
parent
fb7e5cae3a
commit
c2bb342766
1 changed files with 2 additions and 2 deletions
|
@ -528,7 +528,7 @@ $(document).keydown((e) => {
|
|||
}
|
||||
}
|
||||
|
||||
if (e.key === "Backspace") {
|
||||
if (e.key === "Backspace" || e.key === "Delete") {
|
||||
setTimeout(() => {
|
||||
let inputVal = $("#commandLine input").val();
|
||||
if (
|
||||
|
@ -536,7 +536,7 @@ $(document).keydown((e) => {
|
|||
isSingleListCommandLineActive() &&
|
||||
inputVal[0] !== ">"
|
||||
) {
|
||||
restoreOldCommandLine();
|
||||
restoreOldCommandLine(false);
|
||||
}
|
||||
}, 1);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue