MCPcopy
hub / github.com/witheve/Eve / delayBlurEvent

Function delayBlurEvent

src/codemirror.js:4240–4248  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

4238 // FOCUS/BLUR EVENTS
4239
4240 function delayBlurEvent(cm) {
4241 cm.state.delayingBlurEvent = true;
4242 setTimeout(function() {
4243 if (cm.state.delayingBlurEvent) {
4244 cm.state.delayingBlurEvent = false;
4245 onBlur(cm);
4246 }
4247 }, 100);
4248 }
4249
4250 function onFocus(cm) {
4251 if (cm.state.delayingBlurEvent) cm.state.delayingBlurEvent = false;

Callers 1

onMouseDownFunction · 0.85

Calls 1

onBlurFunction · 0.85

Tested by

no test coverage detected