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

Function ensureFocus

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

Source from the content-addressed store, hash-verified

1564 }
1565
1566 function ensureFocus(cm) {
1567 if (!cm.state.focused) { focusInput(cm); onFocus(cm); }
1568 }
1569
1570 function isReadOnly(cm) {
1571 return cm.options.readOnly || cm.doc.cantEdit;

Callers 2

extendFunction · 0.70
onKeyDownFunction · 0.70

Calls 2

focusInputFunction · 0.70
onFocusFunction · 0.70

Tested by

no test coverage detected