MCPcopy Create free account
hub / github.com/TruthHun/BookStack / onContextMenu

Function onContextMenu

static/mergely/lib/codemirror.js:4263–4267  ·  view source on GitHub ↗
(cm, e)

Source from the content-addressed store, hash-verified

4261 // textarea (making it as unobtrusive as possible) to let the
4262 // right-click take effect on it.
4263 function onContextMenu(cm, e) {
4264 if (eventInWidget(cm.display, e) || contextMenuInGutter(cm, e)) return;
4265 if (signalDOMEvent(cm, e, "contextmenu")) return;
4266 cm.display.input.onContextMenu(e);
4267 }
4268
4269 function contextMenuInGutter(cm, e) {
4270 if (!hasHandler(cm, "gutterContextMenu")) return false;

Callers 2

registerEventHandlersFunction · 0.70
onMouseDownFunction · 0.70

Calls 3

eventInWidgetFunction · 0.70
contextMenuInGutterFunction · 0.70
signalDOMEventFunction · 0.70

Tested by

no test coverage detected