1) Fixed Tab key navigation for Maintenance dialog. Fixes #4227

2) Fix Tab key issue for Toggle switch controls and button on the dialog footer in Safari browser. Fixes #4244
This commit is contained in:
Aditya Toshniwal
2019-05-15 16:37:06 +05:30
committed by Akshay Joshi
parent ed8d1cde00
commit 2cd58efcdd
7 changed files with 40 additions and 22 deletions

View File

@@ -591,6 +591,11 @@ define([
break;
}
},
onshow: function() {
var container = $(this.elements.body).find('.tab-content:first > .tab-pane.active:first');
commonUtils.findAndSetFocus(container);
},
},
prepare: function() {
@@ -656,8 +661,6 @@ define([
});
view.$el.attr('tabindex', -1);
var container = view.$el.find('.tab-content:first > .tab-pane.active:first');
commonUtils.findAndSetFocus(container);
setTimeout(function() {
pgBrowser.keyboardNavigation.getDialogTabNavigator($(self.elements.dialog));
}, 200);