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

Function ensureFocus

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

Source from the content-addressed store, hash-verified

2305 }
2306
2307 function ensureFocus(cm) {
2308 if (!cm.state.focused) { focusInput(cm); onFocus(cm); }
2309 }
2310
2311 function isReadOnly(cm) {
2312 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