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

Function e_button

static/editor.md/lib/codemirror/lib/codemirror.js:7897–7906  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

7895
7896 function e_target(e) {return e.target || e.srcElement;}
7897 function e_button(e) {
7898 var b = e.which;
7899 if (b == null) {
7900 if (e.button & 1) b = 1;
7901 else if (e.button & 2) b = 3;
7902 else if (e.button & 4) b = 2;
7903 }
7904 if (mac && e.ctrlKey && b == 1) b = 3;
7905 return b;
7906 }
7907
7908 // EVENT HANDLING
7909

Callers 2

onMouseDownFunction · 0.70
leftButtonSelectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected