[DE PDFE PE SSE VE] Fix shortcuts for view mode

This commit is contained in:
Alexey Koshelev
2025-10-06 18:11:36 +03:00
parent 697b8c0e49
commit 01597adec0
5 changed files with 10 additions and 5 deletions

View File

@ -951,12 +951,13 @@ define([
documentHolderController.getView().on('editcomplete', _.bind(me.onEditComplete, me));
// VE.getController('Common.Controllers.Shortcuts').setApi(me.api);
if (me.appOptions.isEdit) {
if (me.needToUpdateVersion)
Common.NotificationCenter.trigger('api:disconnect');
var timer_sl = setTimeout(function(){
PDFE.getController('Common.Controllers.Shortcuts').setApi(me.api);
toolbarController.createDelayedElements();
toolbarController.activateControls();