mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
Update lib/client/menu.js
This commit is contained in:
parent
f223acf069
commit
f115931bab
1 changed files with 5 additions and 3 deletions
|
|
@ -109,9 +109,11 @@ CloudCommander.Menu.Keys = (function(){
|
|||
CloudCommander.Menu.load(this);
|
||||
|
||||
document.onmousedown = function(){
|
||||
console.log(event)
|
||||
if(event.button === CloudCommander.MOUSE_BUTTON.RIGHT)
|
||||
CloudCommander.Menu.show();
|
||||
var lTag = event.target.nodeName;
|
||||
if(event.button === CloudCommander.MOUSE_BUTTON.RIGHT &&
|
||||
lTag === 'SPAN' ||
|
||||
lTag === 'A')
|
||||
CloudCommander.Menu.show();
|
||||
};
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue