Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
extend
Function · 0.70
onKeyDown
Function · 0.70
Calls
2
focusInput
Function · 0.70
onFocus
Function · 0.70
Tested by
no test coverage detected