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:
+3
@@ -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);
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user