mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-02-10 18:05:32 +08:00
[PDF] Fix focus in the window (when close Hyperlink dialog after hiding)
This commit is contained in:
@ -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);
|
||||
},
|
||||
|
||||
@ -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);
|
||||
},
|
||||
|
||||
@ -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);
|
||||
},
|
||||
|
||||
@ -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);
|
||||
},
|
||||
|
||||
@ -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);
|
||||
},
|
||||
|
||||
@ -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);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user