MCPcopy Index your code
hub / github.com/csev/py4e / focusInput

Function focusInput

tools/pythonauto/static/codemirror/codemirror.js:1561–1564  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

1559 }
1560
1561 function focusInput(cm) {
1562 if (cm.options.readOnly != "nocursor" && (!mobile || document.activeElement != cm.display.input))
1563 cm.display.input.focus();
1564 }
1565
1566 function ensureFocus(cm) {
1567 if (!cm.state.focused) { focusInput(cm); onFocus(cm); }

Callers 8

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

Calls

no outgoing calls

Tested by

no test coverage detected