MCPcopy Create free account
hub / github.com/sql-js/sql.js / e_button

Function e_button

GUI/codemirror/lib/codemirror.js:6845–6854  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

6843
6844 function e_target(e) {return e.target || e.srcElement;}
6845 function e_button(e) {
6846 var b = e.which;
6847 if (b == null) {
6848 if (e.button & 1) b = 1;
6849 else if (e.button & 2) b = 3;
6850 else if (e.button & 4) b = 2;
6851 }
6852 if (mac && e.ctrlKey && b == 1) b = 3;
6853 return b;
6854 }
6855
6856 // EVENT HANDLING
6857

Callers 2

onMouseDownFunction · 0.85
leftButtonSelectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…