MCPcopy Create free account
hub / github.com/TruthHun/BookStack / delayBlurEvent

Function delayBlurEvent

static/mergely/lib/codemirror.js:4217–4225  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

4215 // FOCUS/BLUR EVENTS
4216
4217 function delayBlurEvent(cm) {
4218 cm.state.delayingBlurEvent = true;
4219 setTimeout(function() {
4220 if (cm.state.delayingBlurEvent) {
4221 cm.state.delayingBlurEvent = false;
4222 onBlur(cm);
4223 }
4224 }, 100);
4225 }
4226
4227 function onFocus(cm) {
4228 if (cm.state.delayingBlurEvent) cm.state.delayingBlurEvent = false;

Callers 1

onMouseDownFunction · 0.85

Calls 1

onBlurFunction · 0.70

Tested by

no test coverage detected