From b04cfcd3fd52a746bd51a52c75cf99592b3767f0 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 14 Aug 2012 15:42:40 +0300 Subject: [PATCH] added mouse button event handler --- lib/client/menu.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/client/menu.js b/lib/client/menu.js index a6ad52ad..7b5250ef 100644 --- a/lib/client/menu.js +++ b/lib/client/menu.js @@ -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(); + }; + }); \ No newline at end of file