bug 25490
bug 25490
This commit is contained in:
parent
3ddbc065e9
commit
138c5661ee
|
@ -671,8 +671,11 @@ define([
|
||||||
|
|
||||||
onEditComplete: function(cmp, opts) {
|
onEditComplete: function(cmp, opts) {
|
||||||
if (opts && opts.restorefocus && this.api.isCEditorFocused) {
|
if (opts && opts.restorefocus && this.api.isCEditorFocused) {
|
||||||
this.formulaInput.blur();
|
var me = this;
|
||||||
this.formulaInput.focus();
|
setTimeout(function () {
|
||||||
|
me.formulaInput.blur();
|
||||||
|
me.formulaInput.focus();
|
||||||
|
}, 0);
|
||||||
} else {
|
} else {
|
||||||
this.getApplication().getController('DocumentHolder').getView('DocumentHolder').focus();
|
this.getApplication().getController('DocumentHolder').getView('DocumentHolder').focus();
|
||||||
this.api.isCEditorFocused = false;
|
this.api.isCEditorFocused = false;
|
||||||
|
|
|
@ -670,7 +670,7 @@ define([
|
||||||
btnSubscript.options.icls = item.options.icls;
|
btnSubscript.options.icls = item.options.icls;
|
||||||
}
|
}
|
||||||
|
|
||||||
Common.NotificationCenter.trigger('edit:complete', this.toolbar);
|
Common.NotificationCenter.trigger('edit:complete', this.toolbar, {restorefocus:true});
|
||||||
Common.component.Analytics.trackEvent('ToolBar', (item.value == 'sub') ? 'Subscript' : 'Superscript');
|
Common.component.Analytics.trackEvent('ToolBar', (item.value == 'sub') ? 'Subscript' : 'Superscript');
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -685,7 +685,7 @@ define([
|
||||||
this.api.asc_setCellSuperscript(btn.pressed);
|
this.api.asc_setCellSuperscript(btn.pressed);
|
||||||
}
|
}
|
||||||
|
|
||||||
Common.NotificationCenter.trigger('edit:complete', this.toolbar);
|
Common.NotificationCenter.trigger('edit:complete', this.toolbar, {restorefocus:true});
|
||||||
Common.component.Analytics.trackEvent('ToolBar', (subscript) ? 'Subscript' : 'Superscript');
|
Common.component.Analytics.trackEvent('ToolBar', (subscript) ? 'Subscript' : 'Superscript');
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue