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

Function onBlur

external/.scrollLibs.js:4672–4688  ·  view source on GitHub ↗
(cm, e)

Source from the content-addressed store, hash-verified

4670 restartBlink(cm)
4671 }
4672 function onBlur(cm, e) {
4673 if (cm.state.delayingBlurEvent) {
4674 return
4675 }
4676
4677 if (cm.state.focused) {
4678 signal(cm, "blur", cm, e)
4679 cm.state.focused = false
4680 rmClass(cm.display.wrapper, "CodeMirror-focused")
4681 }
4682 clearInterval(cm.display.blinker)
4683 setTimeout(function () {
4684 if (!cm.state.focused) {
4685 cm.display.shift = false
4686 }
4687 }, 150)
4688 }
4689
4690 // Read the actual heights of the rendered lines, and update their
4691 // stored heights to match.

Callers 5

delayBlurEventFunction · 0.85
defineOptionsFunction · 0.85
CodeMirrorFunction · 0.85
registerEventHandlersFunction · 0.85
.scrollLibs.jsFile · 0.85

Calls 4

signalFunction · 0.85
rmClassFunction · 0.85
isEmptyFunction · 0.85
setPlaceholderFunction · 0.85

Tested by

no test coverage detected