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
dcff1393fb
commit
fee81a642b
1 changed files with 4 additions and 7 deletions
|
|
@ -25,13 +25,10 @@ CloudCommander.KEY = {
|
|||
|
||||
CloudCommander.mouseBinding = (function(pEvent){
|
||||
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.Menu({
|
||||
x: pEvent.x,
|
||||
y: pEvent.y
|
||||
});
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue