[DE-form] Fix load shortcuts controller

This commit is contained in:
Alexey Koshelev
2025-09-29 14:03:39 +03:00
parent 360b9452eb
commit cbf46136bb
4 changed files with 9 additions and 4 deletions

View File

@ -130,7 +130,8 @@ require([
controllers : [
'ApplicationController',
'Plugins',
'SearchBar'
'SearchBar',
'Common.Controllers.Shortcuts'
],
features: {
uitype: 'fillform',
@ -152,6 +153,7 @@ require([
'common/main/lib/controller/Themes',
'common/main/lib/controller/Desktop',
'common/main/lib/view/SearchBar',
'common/main/lib/controller/Shortcuts',
'common/forms/lib/view/modals'
], function() {
const code_path = !window.isIEBrowser ? 'documenteditor/forms/code' : 'documenteditor/forms/ie/code';

View File

@ -1603,6 +1603,7 @@ define([
var zf = (this.appOptions.customization && this.appOptions.customization.zoom ? parseInt(this.appOptions.customization.zoom) : 100);
(zf == -1) ? this.api.zoomFitToPage() : ((zf == -2) ? this.api.zoomFitToWidth() : this.api.zoom(zf>0 ? zf : 100));
DE.getController('Common.Controllers.Shortcuts').setApi(me.api);
this.createDelayedElements();
this.api.asc_registerCallback('asc_onStartAction', _.bind(this.onLongActionBegin, this));

View File

@ -138,7 +138,7 @@ define([
});
this.btnUndo.render($('#id-btn-undo'));
DE.getController('Common.Controllers.Shortcuts').updateShortcutHints({
Undo: {
EditUndo: {
btn: this.btnUndo,
label: this.tipUndo
}
@ -152,7 +152,7 @@ define([
});
this.btnRedo.render($('#id-btn-redo'));
DE.getController('Common.Controllers.Shortcuts').updateShortcutHints({
Redo: {
EditRedo: {
btn: this.btnRedo,
label: this.tipRedo
}

View File

@ -119,7 +119,8 @@ require([
controllers : [
'ApplicationController',
'Plugins',
'SearchBar'
'SearchBar',
'Common.Controllers.Shortcuts'
]
});
@ -142,6 +143,7 @@ require([
'common/main/lib/controller/Themes',
'common/main/lib/controller/Desktop',
'common/main/lib/view/SearchBar',
'common/main/lib/controller/Shortcuts',
'common/forms/lib/view/modals'
], function() {
app.postLaunchScripts = [