added mouse button event handler

This commit is contained in:
coderaiser 2012-08-14 15:42:40 +03:00
parent baf5dc5f37
commit 3b077fde23

View file

@ -107,4 +107,10 @@ CloudCommander.Menu.Keys = (function(){
});
CloudCommander.Menu.load(this);
document.onmousedown = function(){
if(event.button === CloudCommander.MOUSE_BUTTON.RIGHT)
CloudCommander.Menu.show();
};
});