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

Function signalDOMEvent

src/codemirror.js:8249–8254  ·  view source on GitHub ↗
(cm, e, override)

Source from the content-addressed store, hash-verified

8247 // registering a (non-DOM) handler on the editor for the event name,
8248 // and preventDefault-ing the event in that handler.
8249 function signalDOMEvent(cm, e, override) {
8250 if (typeof e == "string")
8251 e = {type: e, preventDefault: function() { this.defaultPrevented = true; }};
8252 signal(cm, override || e.type, cm, e);
8253 return e_defaultPrevented(e) || e.codemirrorIgnore;
8254 }
8255
8256 function signalCursorActivity(cm) {
8257 var arr = cm._handlers && cm._handlers.cursorActivity;

Callers 12

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

Calls 1

e_defaultPreventedFunction · 0.85

Tested by

no test coverage detected