MCPcopy
hub / github.com/nwutils/nw-sample-apps / onDoubleClick

Function onDoubleClick

mini-code-edit/cm/lib/codemirror.js:451–459  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

449 var up = connect(document, "mouseup", operation(done), true);
450 }
451 function onDoubleClick(e) {
452 for (var n = e_target(e); n != wrapper; n = n.parentNode)
453 if (n.parentNode == gutterText) return e_preventDefault(e);
454 var start = posFromMouse(e);
455 if (!start) return;
456 lastDoubleClick = {time: +new Date, pos: start};
457 e_preventDefault(e);
458 selectWordAt(start);
459 }
460 function onDrop(e) {
461 if (options.onDragEvent && options.onDragEvent(instance, addStop(e))) return;
462 e.preventDefault();

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected