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

Function signalDOMEvent

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

Source from the content-addressed store, hash-verified

8215 // registering a (non-DOM) handler on the editor for the event name,
8216 // and preventDefault-ing the event in that handler.
8217 function signalDOMEvent(cm, e, override) {
8218 if (typeof e == "string")
8219 e = {type: e, preventDefault: function() { this.defaultPrevented = true; }};
8220 signal(cm, override || e.type, cm, e);
8221 return e_defaultPrevented(e) || e.codemirrorIgnore;
8222 }
8223
8224 function signalCursorActivity(cm) {
8225 var arr = cm._handlers && cm._handlers.cursorActivity;

Callers 12

codemirror.jsFile · 0.70
prepareCopyCutFunction · 0.70
onCopyCutFunction · 0.70
registerEventHandlersFunction · 0.70
onMouseDownFunction · 0.70
onDropFunction · 0.70
onDragStartFunction · 0.70
onKeyDownFunction · 0.70
onKeyUpFunction · 0.70
onKeyPressFunction · 0.70
onContextMenuFunction · 0.70
maybeScrollWindowFunction · 0.70

Calls 1

e_defaultPreventedFunction · 0.70

Tested by

no test coverage detected