From b701799a0344dd59bd84cd964400ba3c92917921 Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 24 Mar 2021 14:53:23 -0600 Subject: [PATCH] Api: Avoid "Uncaught TypeError: egw_globalObjectManager is null" from popups --- api/js/egw_action/egw_keymanager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/egw_action/egw_keymanager.js b/api/js/egw_action/egw_keymanager.js index f77fbce43c..3b899ba629 100644 --- a/api/js/egw_action/egw_keymanager.js +++ b/api/js/egw_action/egw_keymanager.js @@ -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) {