MCPcopy Index your code
hub / github.com/DHTMLX/gantt / onContextMenu

Function onContextMenu

samples/common/codehighlight/codemirror.js:7644–7648  ·  view source on GitHub ↗
(cm, e)

Source from the content-addressed store, hash-verified

7642 // textarea (making it as unobtrusive as possible) to let the
7643 // right-click take effect on it.
7644 function onContextMenu(cm, e) {
7645 if (eventInWidget(cm.display, e) || contextMenuInGutter(cm, e)) { return }
7646 if (signalDOMEvent(cm, e, "contextmenu")) { return }
7647 if (!captureRightClick) { cm.display.input.onContextMenu(e); }
7648 }
7649
7650 function contextMenuInGutter(cm, e) {
7651 if (!hasHandler(cm, "gutterContextMenu")) { return false }

Callers 1

registerEventHandlersFunction · 0.70

Calls 3

eventInWidgetFunction · 0.85
contextMenuInGutterFunction · 0.85
signalDOMEventFunction · 0.85

Tested by

no test coverage detected