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

Function e_button

tools/pythonauto/static/codemirrorepl/codemirror.js:6795–6804  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

6793
6794 function e_target(e) {return e.target || e.srcElement;}
6795 function e_button(e) {
6796 var b = e.which;
6797 if (b == null) {
6798 if (e.button & 1) b = 1;
6799 else if (e.button & 2) b = 3;
6800 else if (e.button & 4) b = 2;
6801 }
6802 if (mac && e.ctrlKey && b == 1) b = 3;
6803 return b;
6804 }
6805
6806 // EVENT HANDLING
6807

Callers 2

onMouseDownFunction · 0.70
leftButtonSelectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected