mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 17:38:19 +01:00
Show browser context menu when you ctrl + right click
This commit is contained in:
parent
4c54745cbb
commit
93eacb1b13
@ -235,18 +235,18 @@ function egwPopupActionImplementation()
|
||||
{
|
||||
_egw_active_menu.hide()
|
||||
}
|
||||
else
|
||||
else if (!e.ctrlKey)
|
||||
{
|
||||
_xy = ai._getPageXY(e);
|
||||
_callback.call(_context, _xy, ai);
|
||||
}
|
||||
|
||||
e.cancelBubble = true;
|
||||
if (e.stopPropagation)
|
||||
e.cancelBubble = !e.ctrlKey;
|
||||
if (e.stopPropagation && !e.ctrlKey)
|
||||
{
|
||||
e.stopPropagation();
|
||||
}
|
||||
return false;
|
||||
return e.ctrlKey;
|
||||
}
|
||||
|
||||
if (egwIsMobile()) {
|
||||
|
@ -179,12 +179,14 @@ $j(document).ready(function() {
|
||||
* Required to catch the context menu
|
||||
*/
|
||||
$j(window).on("contextmenu",document, function(event) {
|
||||
if(egw_keyHandler(EGW_KEY_MENU, event.shiftKey, event.ctrlKey || event.metaKey, event.altKey))
|
||||
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
|
||||
// sub component, prevent the default action
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user