Fix autocomplete selection when hitting Enter

This commit is contained in:
Jérémie Astori 2018-03-29 22:04:08 -04:00
parent 153d9c6b2c
commit 09a6c8b067
No known key found for this signature in database
GPG Key ID: B9A4F245CD67BDE8

View File

@ -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) {