Remove a use of jQuery

This commit is contained in:
nathan 2024-11-15 10:49:41 -07:00
parent 2dc9c4ec57
commit 1a70183e0b

View File

@ -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;
})
});
/**