MCPcopy Create free account
hub / github.com/TruthHun/BookStack / ensureFocus

Function ensureFocus

static/editor.md/lib/codemirror/lib/codemirror.js:1066–1068  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

1064 // INPUT HANDLING
1065
1066 function ensureFocus(cm) {
1067 if (!cm.state.focused) { cm.display.input.focus(); onFocus(cm); }
1068 }
1069
1070 function isReadOnly(cm) {
1071 return cm.options.readOnly || cm.doc.cantEdit;

Callers 3

leftButtonDownFunction · 0.70
extendFunction · 0.70
onKeyDownFunction · 0.70

Calls 1

onFocusFunction · 0.70

Tested by

no test coverage detected