MCPcopy Create free account
hub / github.com/DHTMLX/gantt / belongsToInput

Function belongsToInput

samples/common/codehighlight/codemirror.js:8774–8780  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

8772 disableBrowserMagic(div, cm.options.spellcheck, cm.options.autocorrect, cm.options.autocapitalize);
8773
8774 function belongsToInput(e) {
8775 for (var t = e.target; t; t = t.parentNode) {
8776 if (t == div) { return true }
8777 if (/\bCodeMirror-(?:line)?widget\b/.test(t.className)) { break }
8778 }
8779 return false
8780 }
8781
8782 on(div, "paste", function (e) {
8783 if (!belongsToInput(e) || signalDOMEvent(cm, e) || handlePaste(e, cm)) { return }

Callers 2

codemirror.jsFile · 0.85
onCopyCutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected