MDL-44868 editor_atto: Remember the last focused button in the toolbar
This commit is contained in:
+1
@@ -760,6 +760,7 @@ EditorToolbarNav.prototype = {
|
||||
button = this._findFirstFocusable(buttons, current, direction);
|
||||
if (button) {
|
||||
button.focus();
|
||||
this._setTabFocus(button);
|
||||
} else {
|
||||
Y.log("Unable to find a button to focus on", 'debug', LOGNAME);
|
||||
}
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
+1
@@ -757,6 +757,7 @@ EditorToolbarNav.prototype = {
|
||||
button = this._findFirstFocusable(buttons, current, direction);
|
||||
if (button) {
|
||||
button.focus();
|
||||
this._setTabFocus(button);
|
||||
} else {
|
||||
}
|
||||
},
|
||||
|
||||
@@ -84,6 +84,7 @@ EditorToolbarNav.prototype = {
|
||||
button = this._findFirstFocusable(buttons, current, direction);
|
||||
if (button) {
|
||||
button.focus();
|
||||
this._setTabFocus(button);
|
||||
} else {
|
||||
Y.log("Unable to find a button to focus on", 'debug', LOGNAME);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user