把鼠标中键绑定为ESC
This commit is contained in:
parent
633e248404
commit
99a9bdd327
4
main.js
4
main.js
@ -224,6 +224,10 @@ document.ontouchstart = function() {
|
||||
main.dom.data.onmousedown = function (e) {
|
||||
try {
|
||||
e.stopPropagation();
|
||||
if(e.button==1){// 把鼠标中键绑定为ESC
|
||||
core.keyUp(27);
|
||||
return;
|
||||
}
|
||||
var loc = main.core.getClickLoc(e.clientX, e.clientY);
|
||||
if (loc == null) return;
|
||||
var x = parseInt(loc.x / loc.size), y = parseInt(loc.y / loc.size);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user