()
| 13058 | } |
| 13059 | } |
| 13060 | function rehide() { |
| 13061 | if (input.contextMenuPending != rehide) { |
| 13062 | return |
| 13063 | } |
| 13064 | input.contextMenuPending = false |
| 13065 | input.wrapper.style.cssText = oldWrapperCSS |
| 13066 | te.style.cssText = oldCSS |
| 13067 | if (ie && ie_version < 9) { |
| 13068 | display.scrollbars.setScrollTop((display.scroller.scrollTop = scrollPos)) |
| 13069 | } |
| 13070 | |
| 13071 | // Try to detect the user choosing select-all |
| 13072 | if (te.selectionStart != null) { |
| 13073 | if (!ie || (ie && ie_version < 9)) { |
| 13074 | prepareSelectAllHack() |
| 13075 | } |
| 13076 | var i = 0, |
| 13077 | poll = function () { |
| 13078 | if (display.selForContextMenu == cm.doc.sel && te.selectionStart == 0 && te.selectionEnd > 0 && input.prevInput == "\u200b") { |
| 13079 | operation(cm, selectAll)(cm) |
| 13080 | } else if (i++ < 10) { |
| 13081 | display.detectingSelectAll = setTimeout(poll, 500) |
| 13082 | } else { |
| 13083 | display.selForContextMenu = null |
| 13084 | display.input.reset() |
| 13085 | } |
| 13086 | } |
| 13087 | display.detectingSelectAll = setTimeout(poll, 200) |
| 13088 | } |
| 13089 | } |
| 13090 | |
| 13091 | if (ie && ie_version >= 9) { |
| 13092 | prepareSelectAllHack() |
nothing calls this directly
no test coverage detected