()
| 1449 | } |
| 1450 | } |
| 1451 | function rehide() { |
| 1452 | input.contextMenuPending = false; |
| 1453 | input.wrapper.style.position = "relative"; |
| 1454 | te.style.cssText = oldCSS; |
| 1455 | if (ie && ie_version < 9) display.scrollbars.setScrollTop(display.scroller.scrollTop = scrollPos); |
| 1456 | |
| 1457 | // Try to detect the user choosing select-all |
| 1458 | if (te.selectionStart != null) { |
| 1459 | if (!ie || (ie && ie_version < 9)) prepareSelectAllHack(); |
| 1460 | var i = 0, poll = function() { |
| 1461 | if (display.selForContextMenu == cm.doc.sel && te.selectionStart == 0) |
| 1462 | operation(cm, commands.selectAll)(cm); |
| 1463 | else if (i++ < 10) display.detectingSelectAll = setTimeout(poll, 500); |
| 1464 | else display.input.reset(); |
| 1465 | }; |
| 1466 | display.detectingSelectAll = setTimeout(poll, 200); |
| 1467 | } |
| 1468 | } |
| 1469 | |
| 1470 | if (ie && ie_version >= 9) prepareSelectAllHack(); |
| 1471 | if (captureRightClick) { |
nothing calls this directly
no test coverage detected