mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 16:33:17 +01:00
Remove a use of jQuery
This commit is contained in:
parent
2dc9c4ec57
commit
1a70183e0b
@ -14,7 +14,6 @@
|
||||
*/
|
||||
|
||||
import {egw_getAppObjectManager, egw_globalObjectManager} from "./egw_action";
|
||||
import {_egw_active_menu} from "./egw_menu";
|
||||
import {
|
||||
EGW_AO_EXEC_SELECTED,
|
||||
EGW_AO_FLAG_DEFAULT_FOCUS,
|
||||
@ -137,7 +136,8 @@ ready(() => {//waits for DOM ready
|
||||
/**
|
||||
* Required to catch the context menu
|
||||
*/
|
||||
jQuery(window).on("contextmenu",document, function(event) {
|
||||
window.addEventListener("contextmenu", 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))
|
||||
@ -148,7 +148,7 @@ jQuery(window).on("contextmenu",document, function(event) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user