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

Function rehide

tools/pythonauto/static/codemirror/codemirror.js:2247–2265  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2245 }
2246 }
2247 function rehide() {
2248 display.inputDiv.style.position = "relative";
2249 display.input.style.cssText = oldCSS;
2250 if (ie_lt9) display.scrollbarV.scrollTop = display.scroller.scrollTop = scrollPos;
2251 slowPoll(cm);
2252
2253 // Try to detect the user choosing select-all
2254 if (display.input.selectionStart != null) {
2255 if (!ie || ie_lt9) prepareSelectAllHack();
2256 clearTimeout(detectingSelectAll);
2257 var i = 0, poll = function(){
2258 if (display.prevInput == "\u200b" && display.input.selectionStart == 0)
2259 operation(cm, commands.selectAll)(cm);
2260 else if (i++ < 10) detectingSelectAll = setTimeout(poll, 500);
2261 else resetInput(cm);
2262 };
2263 detectingSelectAll = setTimeout(poll, 200);
2264 }
2265 }
2266
2267 if (ie && !ie_lt9) prepareSelectAllHack();
2268 if (captureMiddleClick) {

Callers

nothing calls this directly

Calls 2

slowPollFunction · 0.70
prepareSelectAllHackFunction · 0.70

Tested by

no test coverage detected