mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-28 22:01:55 +02: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_getAppObjectManager, egw_globalObjectManager} from "./egw_action";
|
||||||
import {_egw_active_menu} from "./egw_menu";
|
|
||||||
import {
|
import {
|
||||||
EGW_AO_EXEC_SELECTED,
|
EGW_AO_EXEC_SELECTED,
|
||||||
EGW_AO_FLAG_DEFAULT_FOCUS,
|
EGW_AO_FLAG_DEFAULT_FOCUS,
|
||||||
@ -137,7 +136,8 @@ ready(() => {//waits for DOM ready
|
|||||||
/**
|
/**
|
||||||
* Required to catch the context menu
|
* Required to catch the context menu
|
||||||
*/
|
*/
|
||||||
jQuery(window).on("contextmenu",document, function(event) {
|
window.addEventListener("contextmenu", function(event)
|
||||||
|
{
|
||||||
// Check for actual key press
|
// Check for actual key press
|
||||||
if (!(event.originalEvent.x == 1 && event.originalEvent.y == 1)) return true;
|
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 (!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 false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
})
|
});
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user