From b6d17d64eec1bd51d1eba80a9fdb0606639bd5e9 Mon Sep 17 00:00:00 2001 From: akp <25960342+aungKhantPaing@users.noreply.github.com> Date: Mon, 31 Oct 2022 04:32:22 +0630 Subject: [PATCH] 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 --- frontend/src/ts/commandline/index.ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/frontend/src/ts/commandline/index.ts b/frontend/src/ts/commandline/index.ts index 14df1300c..199ac249f 100644 --- a/frontend/src/ts/commandline/index.ts +++ b/frontend/src/ts/commandline/index.ts @@ -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(); });