mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 17:04:16 +00:00
Update lib/client/keyBinding.js
This commit is contained in:
parent
db510f79bc
commit
9fe729e108
1 changed files with 5 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
};
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue