fixed commandline not reacting to deleting > symbol correctly

This commit is contained in:
Jack 2021-09-15 12:13:20 +01:00
parent fb7e5cae3a
commit c2bb342766

View file

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