Api: Avoid "Uncaught TypeError: egw_globalObjectManager is null" from popups

This commit is contained in:
nathangray 2021-03-24 14:53:23 -06:00
parent 42b3813ff4
commit b701799a03

View File

@ -267,7 +267,7 @@ function egw_keyHandler(_keyCode, _shift, _ctrl, _alt) {
// Get the object manager and fetch the container of the currently
// focused object
var focusedObject = egw_globalObjectManager.getFocusedObject();
var focusedObject = egw_globalObjectManager ? egw_globalObjectManager.getFocusedObject() : null;
var appMgr = egw_getAppObjectManager(false);
if (appMgr && !focusedObject)
{