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

Function signalDOMEvent

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

Source from the content-addressed store, hash-verified

7978 // registering a (non-DOM) handler on the editor for the event name,
7979 // and preventDefault-ing the event in that handler.
7980 function signalDOMEvent(cm, e, override) {
7981 if (typeof e == "string")
7982 e = {type: e, preventDefault: function() { this.defaultPrevented = true; }};
7983 signal(cm, override || e.type, cm, e);
7984 return e_defaultPrevented(e) || e.codemirrorIgnore;
7985 }
7986
7987 function signalCursorActivity(cm) {
7988 var arr = cm._handlers && cm._handlers.cursorActivity;

Callers 9

registerEventHandlersFunction · 0.70
drag_Function · 0.70
onMouseDownFunction · 0.70
onDropFunction · 0.70
onDragStartFunction · 0.70
onKeyDownFunction · 0.70
onKeyUpFunction · 0.70
onKeyPressFunction · 0.70
maybeScrollWindowFunction · 0.70

Calls 1

e_defaultPreventedFunction · 0.70

Tested by

no test coverage detected