зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1425972 - Manually handle Tab navigation in PanelMultiView so it syncs with Arrow navigation. r=Gijs
MozReview-Commit-ID: 5PjXFZBeWzM --HG-- extra : rebase_source : cd0e2176fed7f9808808e45ea4aef794450af43c
This commit is contained in:
Родитель
f06ff8cd10
Коммит
acb5488eff
|
@ -1053,9 +1053,11 @@ this.PanelMultiView = class {
|
|||
let keyCode = event.code;
|
||||
switch (keyCode) {
|
||||
case "ArrowDown":
|
||||
case "ArrowUp": {
|
||||
case "ArrowUp":
|
||||
case "Tab": {
|
||||
stop();
|
||||
let isDown = (keyCode == "ArrowDown");
|
||||
let isDown = (keyCode == "ArrowDown") ||
|
||||
(keyCode == "Tab" && !event.shiftKey);
|
||||
let button = this._updateSelectedKeyNav(navMap, buttons, isDown);
|
||||
button.focus();
|
||||
break;
|
||||
|
|
Загрузка…
Ссылка в новой задаче