fixed a weird bug when using a mouse to pick an input command and then pressing enter would result in two commands being executed

This commit is contained in:
Jack 2020-10-09 15:50:40 +01:00
parent 34c04d99ee
commit 20418b74b8

View file

@ -1414,6 +1414,7 @@ $("#commandLineWrapper #commandLine .suggestions").on("mouseover", (e) => {
});
$("#commandLineWrapper #commandLine .suggestions").click((e) => {
$(".suggestions .entry").removeClass('activeKeyboard');
triggerCommand($(e.target).attr("command"));
});