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:
Ian Moody 2017-12-19 19:37:34 +00:00
Родитель f06ff8cd10
Коммит acb5488eff
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -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;