From 881f8d254b103215297da0c83248ebb3b4776e20 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Sat, 11 Jan 2014 15:20:11 +0000 Subject: [PATCH] Context menu only on keypress, or right-click of something with actions --- phpgwapi/js/egw_action/egw_keymanager.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/phpgwapi/js/egw_action/egw_keymanager.js b/phpgwapi/js/egw_action/egw_keymanager.js index b489150a58..3d8c8e584d 100644 --- a/phpgwapi/js/egw_action/egw_keymanager.js +++ b/phpgwapi/js/egw_action/egw_keymanager.js @@ -179,6 +179,8 @@ $j(document).ready(function() { * Required to catch the context menu */ $j(window).on("contextmenu",document, function(event) { + // Check for actual key press + if(!(event.originalEvent.x == 1 && event.originalEvent.y == 1)) return true; if(!event.ctrlKey && egw_keyHandler(EGW_KEY_MENU, event.shiftKey, event.ctrlKey || event.metaKey, event.altKey)) { // If the key handler successfully passed the key event to some