mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-24 03:05:41 +00:00
Update lib/client/keyBinding.js
This commit is contained in:
parent
0da891c0f7
commit
d12e7a6cd1
1 changed files with 2 additions and 8 deletions
|
|
@ -23,16 +23,10 @@ CloudCommander.KEY = {
|
|||
F10 : 121
|
||||
};
|
||||
|
||||
CloudCommander.mouseBinding = (function(pElement){
|
||||
var isElement = pElement ? true : false;
|
||||
if(isElement){
|
||||
pElement = document;
|
||||
}
|
||||
pElement.oncontextmenu = function(){
|
||||
CloudCommander.mouseBinding = (function(){
|
||||
document.oncontextmenu = function(){
|
||||
if(typeof CloudCommander.Menu === 'function')
|
||||
CloudCommander.Menu();
|
||||
else if(isElement)
|
||||
CloudCommander.Menu.show();
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue