MDL-45040 editor-atto: selection reverts erroneously

Fixed an issue where selections reverted on toolbar button press when the last selection was made by dragging outside of Atto.
This commit is contained in:
Jetha Chan
2014-04-10 18:06:47 +08:00
parent ad5a8cd6a2
commit efbcbd5e46
4 changed files with 10 additions and 1 deletions
@@ -748,6 +748,9 @@ EditorPluginButtons.prototype = {
this.get('host').focus();
}
// Save the selection.
this.get('host').saveSelection();
// Ensure that we focus on this button next time.
if (creatorButton) {
this.get('host')._setTabFocus(creatorButton);
File diff suppressed because one or more lines are too long
@@ -746,6 +746,9 @@ EditorPluginButtons.prototype = {
this.get('host').focus();
}
// Save the selection.
this.get('host').saveSelection();
// Ensure that we focus on this button next time.
if (creatorButton) {
this.get('host')._setTabFocus(creatorButton);
@@ -600,6 +600,9 @@ EditorPluginButtons.prototype = {
this.get('host').focus();
}
// Save the selection.
this.get('host').saveSelection();
// Ensure that we focus on this button next time.
if (creatorButton) {
this.get('host')._setTabFocus(creatorButton);