MCPcopy Index your code
hub / github.com/csev/py4e / prepareSelectAllHack

Function prepareSelectAllHack

tools/pythonauto/static/codemirrorepl/codemirror.js:3131–3137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3129 // this adds a zero-width space so that we can later check whether
3130 // it got selected.
3131 function prepareSelectAllHack() {
3132 if (display.input.selectionStart != null) {
3133 var extval = display.input.value = "\u200b" + (cm.somethingSelected() ? display.input.value : "");
3134 display.prevInput = "\u200b";
3135 display.input.selectionStart = 1; display.input.selectionEnd = extval.length;
3136 }
3137 }
3138 function rehide() {
3139 display.inputDiv.style.position = "relative";
3140 display.input.style.cssText = oldCSS;

Callers 2

rehideFunction · 0.70
onContextMenuFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected