added mouse button event handler

This commit is contained in:
coderaiser 2012-08-14 15:42:40 +03:00
parent 6fe3e77450
commit b04cfcd3fd

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();
};
});