From 92a305850281ca926c5ea0a83e45d71cac61db81 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 14 Aug 2012 16:51:53 +0300 Subject: [PATCH] Update lib/client/keyBinding.js --- lib/client/keyBinding.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/client/keyBinding.js b/lib/client/keyBinding.js index 06f10f30..5ed040a9 100644 --- a/lib/client/keyBinding.js +++ b/lib/client/keyBinding.js @@ -30,8 +30,11 @@ CloudCommander.MOUSE_BUTTON = { CloudCommander.mouseBinding = (function(){ document.onmousedown = function(){ if(typeof CloudCommander.Menu === 'function' && - event.button === CloudCommander.MOUSE_BUTTON.RIGHT) + event.button === CloudCommander.MOUSE_BUTTON.RIGHT){ CloudCommander.Menu(); + + event.preventDefault(); + } }; })