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