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

Function ensureFocus

static/mergely/lib/codemirror.js:1093–1095  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

1091 // INPUT HANDLING
1092
1093 function ensureFocus(cm) {
1094 if (!cm.state.focused) { cm.display.input.focus(); onFocus(cm); }
1095 }
1096
1097 // This will be set to an array of strings when copying, so that,
1098 // when pasting, we know what kind of selections the copied text

Callers 1

endOperation_W2Function · 0.70

Calls 1

onFocusFunction · 0.70

Tested by

no test coverage detected