MCPcopy Create free account
hub / github.com/TruthHun/BookStack / e_button

Function e_button

static/mergely/lib/codemirror.js:8128–8137  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

8126
8127 function e_target(e) {return e.target || e.srcElement;}
8128 function e_button(e) {
8129 var b = e.which;
8130 if (b == null) {
8131 if (e.button & 1) b = 1;
8132 else if (e.button & 2) b = 3;
8133 else if (e.button & 4) b = 2;
8134 }
8135 if (mac && e.ctrlKey && b == 1) b = 3;
8136 return b;
8137 }
8138
8139 // EVENT HANDLING
8140

Callers 2

onMouseDownFunction · 0.70
leftButtonSelectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected