MCPcopy Index your code
hub / github.com/DHTMLX/gantt / e_button

Function e_button

samples/common/codehighlight/codemirror.js:617–626  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

615
616 function e_target(e) {return e.target || e.srcElement}
617 function e_button(e) {
618 var b = e.which;
619 if (b == null) {
620 if (e.button & 1) { b = 1; }
621 else if (e.button & 2) { b = 3; }
622 else if (e.button & 4) { b = 2; }
623 }
624 if (mac && e.ctrlKey && b == 1) { b = 3; }
625 return b
626 }
627
628 // Detect drag-and-drop
629 var dragAndDrop = function() {

Callers 2

onMouseDownFunction · 0.85
leftButtonSelectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected