Merge pull request #2314 from thelounge/astorije/fix-autocomplete-enter
Fix autocomplete selection when hitting Enter
This commit is contained in:
commit
7a752081e7
@ -116,6 +116,10 @@ function enableHistory() {
|
|||||||
inputTrap.bind("enter", function() {
|
inputTrap.bind("enter", function() {
|
||||||
position = 0;
|
position = 0;
|
||||||
|
|
||||||
|
if (input.data("autocompleting")) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
const text = input.val();
|
const text = input.val();
|
||||||
|
|
||||||
if (text.length === 0) {
|
if (text.length === 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user