version switch: fix keyboard nav 2 #104747
@ -83,7 +83,7 @@ init() {
|
|||||||
this.btn.classList.remove("wait");
|
this.btn.classList.remove("wait");
|
||||||
this.btnOpenHandler();
|
this.btnOpenHandler();
|
||||||
this.btn.addEventListener("mousedown", function(e){that.btnOpenHandler(); e.preventDefault()});
|
this.btn.addEventListener("mousedown", function(e){that.btnOpenHandler(); e.preventDefault()});
|
||||||
this.btn.addEventListener("keydown", function(e){ if(that.btnKeyFilter(e)){that.btnOpenHandler();} });
|
this.btn.addEventListener("keydown", function(e){ if(that.btnKeyFilter(e)){that.btnOpenHandler();} e.preventDefault();});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
warnOld(release, all_versions) {
|
warnOld(release, all_versions) {
|
||||||
@ -246,14 +246,14 @@ keyMove(e) {
|
|||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
}
|
}
|
||||||
listPrev(nw) {
|
listPrev(nw) {
|
||||||
if (nw.parentNode.previousElementSibling.length !== 0) {
|
if (nw.parentNode.previousElementSibling) {
|
||||||
return nw.parentNode.previousElementSibling.firstElementChild;
|
return nw.parentNode.previousElementSibling.firstElementChild;
|
||||||
} else {
|
} else {
|
||||||
return this.listLast();
|
return this.listLast();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
listNext(nw) {
|
listNext(nw) {
|
||||||
if (nw.parentNode.nextElementSibling.length !== 0) {
|
if (nw.parentNode.nextElementSibling) {
|
||||||
return nw.parentNode.nextElementSibling.firstElementChild;
|
return nw.parentNode.nextElementSibling.firstElementChild;
|
||||||
} else {
|
} else {
|
||||||
return this.listFirst();
|
return this.listFirst();
|
||||||
|
Loading…
Reference in New Issue
Block a user