MCPcopy
hub / github.com/jagenjo/webglstudio.js / signalDOMEvent

Function signalDOMEvent

editor/js/extra/codemirror/codemirror.js:8222–8227  ·  view source on GitHub ↗
(cm, e, override)

Source from the content-addressed store, hash-verified

8220 // registering a (non-DOM) handler on the editor for the event name,
8221 // and preventDefault-ing the event in that handler.
8222 function signalDOMEvent(cm, e, override) {
8223 if (typeof e == "string")
8224 e = {type: e, preventDefault: function() { this.defaultPrevented = true; }};
8225 signal(cm, override || e.type, cm, e);
8226 return e_defaultPrevented(e) || e.codemirrorIgnore;
8227 }
8228
8229 function signalCursorActivity(cm) {
8230 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