MCPcopy
hub / github.com/witheve/Eve / onContextMenu

Function onContextMenu

src/codemirror.js:4286–4290  ·  view source on GitHub ↗
(cm, e)

Source from the content-addressed store, hash-verified

4284 // textarea (making it as unobtrusive as possible) to let the
4285 // right-click take effect on it.
4286 function onContextMenu(cm, e) {
4287 if (eventInWidget(cm.display, e) || contextMenuInGutter(cm, e)) return;
4288 if (signalDOMEvent(cm, e, "contextmenu")) return;
4289 cm.display.input.onContextMenu(e);
4290 }
4291
4292 function contextMenuInGutter(cm, e) {
4293 if (!hasHandler(cm, "gutterContextMenu")) return false;

Callers 2

registerEventHandlersFunction · 0.85
onMouseDownFunction · 0.85

Calls 3

eventInWidgetFunction · 0.85
contextMenuInGutterFunction · 0.85
signalDOMEventFunction · 0.85

Tested by

no test coverage detected