MCPcopy Index your code
hub / github.com/TruthHun/BookStack / onContextMenu

Function onContextMenu

static/editor.md/lib/codemirror/lib/codemirror.js:4085–4088  ·  view source on GitHub ↗
(cm, e)

Source from the content-addressed store, hash-verified

4083 // textarea (making it as unobtrusive as possible) to let the
4084 // right-click take effect on it.
4085 function onContextMenu(cm, e) {
4086 if (eventInWidget(cm.display, e) || contextMenuInGutter(cm, e)) return;
4087 cm.display.input.onContextMenu(e);
4088 }
4089
4090 function contextMenuInGutter(cm, e) {
4091 if (!hasHandler(cm, "gutterContextMenu")) return false;

Callers 2

registerEventHandlersFunction · 0.70
onMouseDownFunction · 0.70

Calls 2

eventInWidgetFunction · 0.70
contextMenuInGutterFunction · 0.70

Tested by

no test coverage detected