summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--autocomplete.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/autocomplete.js b/autocomplete.js
index dc95a1b..3350108 100644
--- a/autocomplete.js
+++ b/autocomplete.js
@@ -41,6 +41,10 @@ class Autocomplete {
this.dropdown.hide();
return;
}
+ if (e.keyCode === 40) {
+ this.dropdown._menu.children[0]?.focus();
+ return;
+ }
});
}