added mouseBinding function

This commit is contained in:
coderaiser 2012-08-14 15:37:23 +03:00
parent 34551e3209
commit 2f5bc93291

View file

@ -23,6 +23,17 @@ CloudCommander.KEY = {
F10 : 121
};
CloudCommander.MOUSE_BUTTON = {
RIGHT : 2,
}
CloudCommander.mouseBinding = (function(){
document.onmousedown = function(){
if(event.button === CloudCommander.MOUSE_BUTTON.RIGHT)
CloudCommander.Menu();
};
})
CloudCommander.keyBinding = (function(){
"use strict";