MCPcopy
hub / github.com/csev/py4e / onFocus

Function onFocus

tools/pythonauto/static/codemirrorepl/codemirrorepl.js:813–824  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

811 }
812
813 function onFocus() {
814 if (options.readOnly == "nocursor") return;
815 if (!focused) {
816 if (options.onFocus) options.onFocus(instance);
817 focused = true;
818 if (wrapper.className.search(/\bCodeMirror-focused\b/) == -1)
819 wrapper.className += " CodeMirror-focused";
820 if (!leaveInputAlone) resetInput(true);
821 }
822 slowPoll();
823 restartBlink();
824 }
825 function onBlur() {
826 if (focused) {
827 if (options.onBlur) options.onBlur(instance);

Callers 4

CodeMirrorFunction · 0.70
onMouseDownFunction · 0.70
extendFunction · 0.70
onKeyDownFunction · 0.70

Calls 4

resetInputFunction · 0.70
slowPollFunction · 0.70
restartBlinkFunction · 0.70
searchMethod · 0.45

Tested by

no test coverage detected