MCPcopy Create free account
hub / github.com/breck7/scroll / signalDOMEvent

Function signalDOMEvent

external/.scrollLibs.js:1982–1993  ·  view source on GitHub ↗
(cm, e, override)

Source from the content-addressed store, hash-verified

1980 // registering a (non-DOM) handler on the editor for the event name,
1981 // and preventDefault-ing the event in that handler.
1982 function signalDOMEvent(cm, e, override) {
1983 if (typeof e == "string") {
1984 e = {
1985 type: e,
1986 preventDefault: function () {
1987 this.defaultPrevented = true
1988 }
1989 }
1990 }
1991 signal(cm, override || e.type, cm, e)
1992 return e_defaultPrevented(e) || e.codemirrorIgnore
1993 }
1994
1995 function signalCursorActivity(cm) {
1996 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
.scrollLibs.jsFile · 0.85
onCopyCutFunction · 0.85
prepareCopyCutFunction · 0.85

Calls 2

signalFunction · 0.85
e_defaultPreventedFunction · 0.85

Tested by

no test coverage detected