MCPcopy Index your code
hub / github.com/ronreiter/interactive-tutorials / focusInput

Function focusInput

static/js/codemirror/codemirror.js:1392–1395  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

1390 }
1391
1392 function focusInput(cm) {
1393 if (cm.options.readOnly != "nocursor" && (!mobile || document.activeElement != cm.display.input))
1394 cm.display.input.focus();
1395 }
1396
1397 function isReadOnly(cm) {
1398 return cm.options.readOnly || cm.doc.cantEdit;

Callers 7

CodeMirrorFunction · 0.85
registerEventHandlersFunction · 0.85
onMouseDownFunction · 0.85
doneFunction · 0.85
onDropFunction · 0.85
onContextMenuFunction · 0.85
codemirror.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected