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

Function rehide

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

Source from the content-addressed store, hash-verified

3136 }
3137 }
3138 function rehide() {
3139 display.inputDiv.style.position = "relative";
3140 display.input.style.cssText = oldCSS;
3141 if (ie_upto8) display.scrollbarV.scrollTop = display.scroller.scrollTop = scrollPos;
3142 slowPoll(cm);
3143
3144 // Try to detect the user choosing select-all
3145 if (display.input.selectionStart != null) {
3146 if (!ie || ie_upto8) prepareSelectAllHack();
3147 clearTimeout(detectingSelectAll);
3148 var i = 0, poll = function(){
3149 if (display.prevInput == "\u200b" && display.input.selectionStart == 0)
3150 operation(cm, commands.selectAll)(cm);
3151 else if (i++ < 10) detectingSelectAll = setTimeout(poll, 500);
3152 else resetInput(cm);
3153 };
3154 detectingSelectAll = setTimeout(poll, 200);
3155 }
3156 }
3157
3158 if (ie && !ie_upto8) prepareSelectAllHack();
3159 if (captureRightClick) {

Callers

nothing calls this directly

Calls 2

slowPollFunction · 0.70
prepareSelectAllHackFunction · 0.70

Tested by

no test coverage detected