mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 05:17:51 +08:00
fixed modifier keys resetting suggested commandline commands
This commit is contained in:
parent
65b3c1c1e4
commit
0d4ee8d325
1 changed files with 3 additions and 1 deletions
|
@ -317,12 +317,14 @@ $("#commandLine input").keyup((e) => {
|
|||
$("#commandLineWrapper #commandLine .suggestions .entry").removeClass(
|
||||
"activeMouse"
|
||||
);
|
||||
console.log(e);
|
||||
if (
|
||||
e.key === "ArrowUp" ||
|
||||
e.key === "ArrowDown" ||
|
||||
e.key === "Enter" ||
|
||||
e.key === "Tab" ||
|
||||
e.code == "AltLeft"
|
||||
e.code == "AltLeft" ||
|
||||
(e.key.length > 1 && e.key !== "Backspace" && e.key !== "Delete")
|
||||
)
|
||||
return;
|
||||
updateSuggested();
|
||||
|
|
Loading…
Reference in a new issue