mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
added mouseBinding function
This commit is contained in:
parent
34551e3209
commit
2f5bc93291
1 changed files with 11 additions and 0 deletions
|
|
@ -23,6 +23,17 @@ CloudCommander.KEY = {
|
|||
F10 : 121
|
||||
};
|
||||
|
||||
CloudCommander.MOUSE_BUTTON = {
|
||||
RIGHT : 2,
|
||||
}
|
||||
|
||||
CloudCommander.mouseBinding = (function(){
|
||||
document.onmousedown = function(){
|
||||
if(event.button === CloudCommander.MOUSE_BUTTON.RIGHT)
|
||||
CloudCommander.Menu();
|
||||
};
|
||||
})
|
||||
|
||||
CloudCommander.keyBinding = (function(){
|
||||
"use strict";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue