mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-28 00:35:25 +08:00
* 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:
parent
5cef5d0cbc
commit
b6d17d64ee
1 changed files with 1 additions and 11 deletions
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue