Merge pull request #2314 from thelounge/astorije/fix-autocomplete-enter

Fix autocomplete selection when hitting Enter
This commit is contained in:
Pavel Djundik 2018-03-30 11:18:45 +03:00 committed by GitHub
commit 7a752081e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,6 +116,10 @@ function enableHistory() {
inputTrap.bind("enter", function() {
position = 0;
if (input.data("autocompleting")) {
return false;
}
const text = input.val();
if (text.length === 0) {