MCPcopy
hub / github.com/hokein/electron-sample-apps / done

Function done

mini-code-editor/cm/lib/codemirror.js:434–442  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

432 }
433
434 function done(e) {
435 clearTimeout(going);
436 var cur = posFromMouse(e);
437 if (cur) setSelectionUser(start, cur);
438 e_preventDefault(e);
439 focusInput();
440 updateInput = true;
441 move(); up();
442 }
443 var move = connect(document, "mousemove", operation(function(e) {
444 clearTimeout(going);
445 e_preventDefault(e);

Callers 1

onMouseDownFunction · 0.70

Calls 4

posFromMouseFunction · 0.85
setSelectionUserFunction · 0.85
e_preventDefaultFunction · 0.85
focusInputFunction · 0.85

Tested by

no test coverage detected