Fixed #2361 (#3695) aungKhantPaing

* fixed #2361

Fixed command line input bug on android

* Update frontend/src/ts/commandline/index.ts

* Update frontend/src/ts/commandline/index.ts

Co-authored-by: Rizwan Mustafa <rizwanmustafa0000@gmail.com>
This commit is contained in:
akp 2022-10-31 04:32:22 +06:30 committed by GitHub
parent 5cef5d0cbc
commit b6d17d64ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -377,21 +377,11 @@ function restoreOldCommandLine(sshow = true): void {
if (sshow) show();
}
$("#commandLine input").keyup((e) => {
$("#commandLine input").on("input", () => {
commandLineMouseMode = false;
$("#commandLineWrapper #commandLine .suggestions .entry").removeClass(
"activeMouse"
);
if (
e.key === "ArrowUp" ||
e.key === "ArrowDown" ||
e.key === "Enter" ||
e.key === "Tab" ||
e.code == "AltLeft" ||
(e.key.length > 1 && e.key !== "Backspace" && e.key !== "Delete")
) {
return;
}
updateSuggested();
});