From 9c1ec7ba62e2c7008ea84cb4e1596d7a43cfaf58 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 28 May 2015 15:34:58 +0000 Subject: [PATCH] Fix keyboard actions changing selection to last clicked row instead of using current user selection. --- phpgwapi/js/egw_action/egw_keymanager.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/phpgwapi/js/egw_action/egw_keymanager.js b/phpgwapi/js/egw_action/egw_keymanager.js index dcaea114bd..3db59d643d 100644 --- a/phpgwapi/js/egw_action/egw_keymanager.js +++ b/phpgwapi/js/egw_action/egw_keymanager.js @@ -272,7 +272,11 @@ function egw_keyHandler(_keyCode, _shift, _ctrl, _alt) { var appMgr = egw_getAppObjectManager(false); if (appMgr) { - var focusedObject = appMgr.getFocusedObject(); + var focusedObject = appMgr.getSelectedObjects(); + if(focusedObject.length) + { + focusedObject = focusedObject[0] || false; + } if (!focusedObject) {