MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / e_button

Function e_button

static/js/codemirror/codemirror.js:4835–4844  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

4833
4834 function e_target(e) {return e.target || e.srcElement;}
4835 function e_button(e) {
4836 var b = e.which;
4837 if (b == null) {
4838 if (e.button & 1) b = 1;
4839 else if (e.button & 2) b = 3;
4840 else if (e.button & 4) b = 2;
4841 }
4842 if (mac && e.ctrlKey && b == 1) b = 3;
4843 return b;
4844 }
4845
4846 // EVENT HANDLING
4847

Callers 1

onMouseDownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected