Bug 1454262 - Regression: Search Bar highlight via cursor down/up keys is no longer possible r=Mardak

MozReview-Commit-ID: KS8KAG1WU76

--HG--
extra : rebase_source : a7eaaa4581b50b8704bfefdbe538ce3f609c7c78
This commit is contained in:
Ricky Rosario 2018-04-23 13:17:51 -04:00
parent 6ce889bcd3
commit b7574c6126

View File

@ -51,7 +51,7 @@ function ContentSearchUIController(inputElement, tableParent, healthReportKey,
this.input.setAttribute("aria-controls", tableID);
tableParent.appendChild(this._makeTable(tableID));
this.input.addEventListener("keypress", this);
this.input.addEventListener("keydown", this);
this.input.addEventListener("input", this);
this.input.addEventListener("focus", this);
this.input.addEventListener("blur", this);
@ -301,7 +301,7 @@ ContentSearchUIController.prototype = {
this._updateSearchWithHeader();
},
_onKeypress(event) {
_onKeydown(event) {
let selectedIndexDelta = 0;
let selectedSuggestionDelta = 0;
let selectedOneOffDelta = 0;