diff --git a/lib/client/keyBinding.js b/lib/client/keyBinding.js index a0211624..a66ac588 100644 --- a/lib/client/keyBinding.js +++ b/lib/client/keyBinding.js @@ -28,13 +28,12 @@ CloudCommander.MOUSE_BUTTON = { } CloudCommander.mouseBinding = (function(){ - document.onmousedown = function(){ - if(typeof CloudCommander.Menu === 'function' && - event.button === CloudCommander.MOUSE_BUTTON.RIGHT){ + //document.onmousedown = function(){ + document.oncontextmenu = function(){ + if(typeof CloudCommander.Menu === 'function') + // && event.button === CloudCommander.MOUSE_BUTTON.RIGHT){ CloudCommander.Menu(); - - return false; - } + } }; })