From 1a70183e0b06687d94f6af6de074a27972a1b606 Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 15 Nov 2024 10:49:41 -0700 Subject: [PATCH] Remove a use of jQuery --- api/js/egw_action/egw_keymanager.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/js/egw_action/egw_keymanager.ts b/api/js/egw_action/egw_keymanager.ts index 3a3e4a0574..849e5092f3 100755 --- a/api/js/egw_action/egw_keymanager.ts +++ b/api/js/egw_action/egw_keymanager.ts @@ -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; -}) +}); /**