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

Function onDragStart

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

Source from the content-addressed store, hash-verified

697 }
698 }
699 function onDragStart(e) {
700 var txt = getSelection();
701 e.dataTransfer.setData("Text", txt);
702
703 // Use dummy image instead of default browsers image.
704 if (gecko || chrome) {
705 var img = document.createElement('img');
706 img.scr = 'data:image/gif;base64,R0lGODdhAgACAIAAAAAAAP///ywAAAAAAgACAAACAoRRADs='; //1x1 image
707 e.dataTransfer.setDragImage(img, 0, 0);
708 }
709 }
710
711 function doHandleBinding(bound, dropShift) {
712 if (typeof bound == "string") {

Callers

nothing calls this directly

Calls 1

getSelectionFunction · 0.85

Tested by

no test coverage detected