()
| 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) { |
nothing calls this directly
no test coverage detected