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

Function e_button

tools/pythonauto/static/codemirror/codemirror.js:5487–5496  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

5485
5486 function e_target(e) {return e.target || e.srcElement;}
5487 function e_button(e) {
5488 var b = e.which;
5489 if (b == null) {
5490 if (e.button & 1) b = 1;
5491 else if (e.button & 2) b = 3;
5492 else if (e.button & 4) b = 2;
5493 }
5494 if (mac && e.ctrlKey && b == 1) b = 3;
5495 return b;
5496 }
5497
5498 // EVENT HANDLING
5499

Callers 1

onMouseDownFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected