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

Function reFocus

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

Source from the content-addressed store, hash-verified

2381
2382 // Prevent clicks in the scrollbars from killing focus
2383 function reFocus() { if (cm.state.focused) setTimeout(bind(focusInput, cm), 0); }
2384 on(d.scrollbarH, "mousedown", reFocus);
2385 on(d.scrollbarV, "mousedown", reFocus);
2386 // Prevent wrapper from ever scrolling

Callers

nothing calls this directly

Calls 1

bindFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…