MCPcopy Create free account
hub / github.com/sql-js/sql.js / focusInput

Function focusInput

GUI/codemirror/lib/codemirror.js:2322–2325  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

2320 }
2321
2322 function focusInput(cm) {
2323 if (cm.options.readOnly != "nocursor" && (!mobile || activeElt() != cm.display.input))
2324 cm.display.input.focus();
2325 }
2326
2327 function ensureFocus(cm) {
2328 if (!cm.state.focused) { focusInput(cm); onFocus(cm); }

Callers 8

CodeMirrorFunction · 0.85
ensureFocusFunction · 0.85
registerEventHandlersFunction · 0.85
leftButtonStartDragFunction · 0.85
doneFunction · 0.85
onDropFunction · 0.85
onContextMenuFunction · 0.85
codemirror.jsFile · 0.85

Calls 1

activeEltFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…