From 9fe729e108c1725d32730cef7027a0d6cef1ee56 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 14 Aug 2012 17:10:55 +0300 Subject: [PATCH] Update lib/client/keyBinding.js --- lib/client/keyBinding.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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; - } + } }; })