mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
Update lib/client/keyBinding.js
This commit is contained in:
parent
87e29cdb20
commit
dcff1393fb
1 changed files with 9 additions and 2 deletions
|
|
@ -24,8 +24,15 @@ CloudCommander.KEY = {
|
|||
};
|
||||
|
||||
CloudCommander.mouseBinding = (function(pEvent){
|
||||
if(typeof CloudCommander.Menu === 'function')
|
||||
CloudCommander.Menu({pEvent.x, pEvent.y});
|
||||
if(typeof CloudCommander.Menu === 'function'){
|
||||
var lPosition = {0,0}
|
||||
if(pEvent && pEvent.x && pEvent.y){
|
||||
var lX = pEvent.x;
|
||||
var lY = pEvent.y;
|
||||
lPosition = {lX, lY}
|
||||
}
|
||||
CloudCommander.Menu(lPosition);
|
||||
}
|
||||
})
|
||||
|
||||
CloudCommander.keyBinding = (function(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue