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

Function focusInput

tools/pythonauto/static/codemirrorepl/codemirror.js:2302–2305  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

2300 }
2301
2302 function focusInput(cm) {
2303 if (cm.options.readOnly != "nocursor" && (!mobile || activeElt() != cm.display.input))
2304 cm.display.input.focus();
2305 }
2306
2307 function ensureFocus(cm) {
2308 if (!cm.state.focused) { focusInput(cm); onFocus(cm); }

Callers 8

CodeMirrorFunction · 0.70
ensureFocusFunction · 0.70
registerEventHandlersFunction · 0.70
leftButtonStartDragFunction · 0.70
doneFunction · 0.70
onDropFunction · 0.70
onContextMenuFunction · 0.70
codemirror.jsFile · 0.70

Calls 1

activeEltFunction · 0.85

Tested by

no test coverage detected