MCPcopy
hub / github.com/hokein/electron-sample-apps / onBlur

Function onBlur

mini-code-editor/cm/lib/codemirror.js:625–637  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

623 restartBlink();
624 }
625 function onBlur() {
626 if (focused) {
627 if (options.onBlur) options.onBlur(instance);
628 focused = false;
629 if (bracketHighlighted)
630 operation(function(){
631 if (bracketHighlighted) { bracketHighlighted(); bracketHighlighted = null; }
632 })();
633 wrapper.className = wrapper.className.replace(" CodeMirror-focused", "");
634 }
635 clearInterval(blinker);
636 setTimeout(function() {if (!focused) shiftSelecting = null;}, 150);
637 }
638
639 // Replace the range from from to to by the strings in newText.
640 // Afterwards, set the selection to selFrom, selTo.

Callers 1

CodeMirrorFunction · 0.85

Calls 1

operationFunction · 0.85

Tested by

no test coverage detected