[PDF] Fix focus in the window (when close Hyperlink dialog after hiding)

This commit is contained in:
Julia.Radzhabova
2025-12-05 22:52:07 +03:00
parent be5c7c2fbd
commit c5a563eceb
6 changed files with 6 additions and 6 deletions

View File

@ -165,7 +165,7 @@ define([
me.api.asc_enableKeyEvents(false);
},
'modal:close': function(dlg) {
Common.Utils.ModalWindow.close();
dlg && dlg.isVisible() && Common.Utils.ModalWindow.close(); // close can be called after hiding
if (!Common.Utils.ModalWindow.isVisible())
me.api.asc_enableKeyEvents(true);
},

View File

@ -352,7 +352,7 @@ define([
me.api.asc_enableKeyEvents(false);
},
'modal:close': function(dlg) {
Common.Utils.ModalWindow.close();
dlg && dlg.isVisible() && Common.Utils.ModalWindow.close(); // close can be called after hiding
if (!Common.Utils.ModalWindow.isVisible())
me.api.asc_enableKeyEvents(true);
},

View File

@ -300,7 +300,7 @@ define([
me.api.asc_enableKeyEvents(false);
},
'modal:close': function(dlg) {
Common.Utils.ModalWindow.close();
dlg && dlg.isVisible() && Common.Utils.ModalWindow.close(); // close can be called after hiding
if (!Common.Utils.ModalWindow.isVisible())
me.api.asc_enableKeyEvents(true);
},

View File

@ -326,7 +326,7 @@ define([
me.api.asc_enableKeyEvents(false);
},
'modal:close': function(dlg) {
Common.Utils.ModalWindow.close();
dlg && dlg.isVisible() && Common.Utils.ModalWindow.close(); // close can be called after hiding
if (!Common.Utils.ModalWindow.isVisible())
me.api.asc_enableKeyEvents(true);
},

View File

@ -355,7 +355,7 @@ define([
me.api.asc_enableKeyEvents(false);
},
'modal:close': function(dlg) {
Common.Utils.ModalWindow.close();
dlg && dlg.isVisible() && Common.Utils.ModalWindow.close(); // close can be called after hiding
if (!Common.Utils.ModalWindow.isVisible())
me.api.asc_enableKeyEvents(true);
},

View File

@ -263,7 +263,7 @@ define([
me.api.asc_enableKeyEvents(false);
},
'modal:close': function(dlg) {
Common.Utils.ModalWindow.close();
dlg && dlg.isVisible() && Common.Utils.ModalWindow.close(); // close can be called after hiding
if (!Common.Utils.ModalWindow.isVisible())
me.api.asc_enableKeyEvents(true);
},