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

Function onDoubleClick

tools/pythonauto/static/codemirrorepl/codemirrorepl.js:651–659  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

649 var up = connect(document, "mouseup", operation(done), true);
650 }
651 function onDoubleClick(e) {
652 for (var n = e_target(e); n != wrapper; n = n.parentNode)
653 if (n.parentNode == gutterText) return e_preventDefault(e);
654 var start = posFromMouse(e);
655 if (!start) return;
656 lastDoubleClick = {time: +new Date, pos: start};
657 e_preventDefault(e);
658 selectWordAt(start);
659 }
660 function onDrop(e) {
661 if (options.onDragEvent && options.onDragEvent(instance, addStop(e))) return;
662 e.preventDefault();

Callers

nothing calls this directly

Calls 4

selectWordAtFunction · 0.85
e_targetFunction · 0.70
e_preventDefaultFunction · 0.70
posFromMouseFunction · 0.70

Tested by

no test coverage detected