Fix a bug related to arrow keys on suggestions
This commit is contained in:
@@ -50,7 +50,7 @@ function autocomplete(inp, passedValues) {
|
|||||||
|
|
||||||
/*execute a function presses a key on the keyboard:*/
|
/*execute a function presses a key on the keyboard:*/
|
||||||
inp.addEventListener("keydown", function(e) {
|
inp.addEventListener("keydown", function(e) {
|
||||||
var x = document.getElementById(this.id + "autocomplete-list");
|
var x = document.getElementById(this.id + "-autocomplete-list");
|
||||||
if (x) x = x.getElementsByTagName("div");
|
if (x) x = x.getElementsByTagName("div");
|
||||||
if (e.keyCode == 40) {
|
if (e.keyCode == 40) {
|
||||||
/*If the arrow DOWN key is pressed,
|
/*If the arrow DOWN key is pressed,
|
||||||
|
|||||||
Reference in New Issue
Block a user