MCPcopy Index your code
hub / github.com/witheve/Eve / rehide

Function rehide

src/codemirror.js:1522–1540  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1520 }
1521 }
1522 function rehide() {
1523 input.contextMenuPending = false;
1524 input.wrapper.style.cssText = oldWrapperCSS
1525 te.style.cssText = oldCSS;
1526 if (ie && ie_version < 9) display.scrollbars.setScrollTop(display.scroller.scrollTop = scrollPos);
1527
1528 // Try to detect the user choosing select-all
1529 if (te.selectionStart != null) {
1530 if (!ie || (ie && ie_version < 9)) prepareSelectAllHack();
1531 var i = 0, poll = function() {
1532 if (display.selForContextMenu == cm.doc.sel && te.selectionStart == 0 &&
1533 te.selectionEnd > 0 && input.prevInput == "\u200b")
1534 operation(cm, commands.selectAll)(cm);
1535 else if (i++ < 10) display.detectingSelectAll = setTimeout(poll, 500);
1536 else display.input.reset();
1537 };
1538 display.detectingSelectAll = setTimeout(poll, 200);
1539 }
1540 }
1541
1542 if (ie && ie_version >= 9) prepareSelectAllHack();
1543 if (captureRightClick) {

Callers

nothing calls this directly

Calls 1

prepareSelectAllHackFunction · 0.85

Tested by

no test coverage detected