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

Function prepareSelectAllHack

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

Source from the content-addressed store, hash-verified

3164 // this adds a zero-width space so that we can later check whether
3165 // it got selected.
3166 function prepareSelectAllHack() {
3167 if (display.input.selectionStart != null) {
3168 var selected = cm.somethingSelected();
3169 var extval = display.input.value = "\u200b" + (selected ? display.input.value : "");
3170 display.prevInput = selected ? "" : "\u200b";
3171 display.input.selectionStart = 1; display.input.selectionEnd = extval.length;
3172 }
3173 }
3174 function rehide() {
3175 display.inputDiv.style.position = "relative";
3176 display.input.style.cssText = oldCSS;

Callers 2

rehideFunction · 0.85
onContextMenuFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…