mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-26 17:20:22 +02:00
Fix autocomplete selection when hitting Enter
This commit is contained in:
parent
153d9c6b2c
commit
09a6c8b067
|
@ -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 a new issue