MDL-44868 editor_atto: Remember the last focused button in the toolbar

This commit is contained in:
Frederic Massart
2014-04-10 14:22:10 +08:00
parent 21fd2384de
commit 5e543b4f76
4 changed files with 5 additions and 2 deletions
@@ -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);
}
File diff suppressed because one or more lines are too long
@@ -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);
}