configurable button codes
This commit is contained in:
@@ -137,7 +137,9 @@ var Screen = (function () {
|
||||
Input.onMouseUp(x, y, evt.button+1);
|
||||
});
|
||||
cOuter.addEventListener('contextmenu', function (evt) {
|
||||
evt.preventDefault();
|
||||
if (Input.mouseTracksClicks()) {
|
||||
evt.preventDefault();
|
||||
}
|
||||
});
|
||||
cOuter.addEventListener('mousewheel', function (evt) {
|
||||
Input.onMouseWheel(x, y, evt.deltaY>0?1:-1);
|
||||
@@ -720,6 +722,9 @@ var Input = (function() {
|
||||
Conn.send("p" + encode2B(y) + encode2B(x) + encode2B(b) + encode2B(m));
|
||||
// console.log("B ",b," M ",m);
|
||||
},
|
||||
mouseTracksClicks: function() {
|
||||
return opts.mt_click;
|
||||
},
|
||||
};
|
||||
})();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user