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

Method checkAndExecute

external/.scrollLibs.js:24425–24431  ·  view source on GitHub ↗
(el, attr, evt)

Source from the content-addressed store, hash-verified

24423 const bodyShadow = willowBrowser.getBodyStumpParticle().getShadow()
24424 const app = this
24425 const checkAndExecute = (el, attr, evt) => {
24426 const stumpParticle = willowBrowser.getStumpParticleFromElement(el)
24427 evt.preventDefault()
24428 evt.stopImmediatePropagation()
24429 this._executeCommandOnStumpParticle(stumpParticle, stumpParticle.getStumpParticleAttr(attr))
24430 return false
24431 }
24432 bodyShadow.onShadowEventWithSelector(BrowserEvents.contextmenu, `[${WillowConstants.contextMenuCommand}]`, function (target, evt) {
24433 if (evt.ctrlKey) return true
24434 app._setMouseEvent(evt) // todo: remove?

Callers

nothing calls this directly

Tested by

no test coverage detected