MCPcopy
hub / github.com/DHTMLX/gantt / signalDOMEvent

Function signalDOMEvent

samples/common/codehighlight/codemirror.js:574–579  ·  view source on GitHub ↗
(cm, e, override)

Source from the content-addressed store, hash-verified

572 // registering a (non-DOM) handler on the editor for the event name,
573 // and preventDefault-ing the event in that handler.
574 function signalDOMEvent(cm, e, override) {
575 if (typeof e == "string")
576 { e = {type: e, preventDefault: function() { this.defaultPrevented = true; }}; }
577 signal(cm, override || e.type, cm, e);
578 return e_defaultPrevented(e) || e.codemirrorIgnore
579 }
580
581 function signalCursorActivity(cm) {
582 var arr = cm._handlers && cm._handlers.cursorActivity;

Callers 12

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

Calls 2

signalFunction · 0.85
e_defaultPreventedFunction · 0.85

Tested by

no test coverage detected