mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
Update lib/client/keyBinding.js
This commit is contained in:
parent
67f1e80fe6
commit
56d99211d7
1 changed files with 23 additions and 20 deletions
|
|
@ -1,5 +1,27 @@
|
|||
var CloudCommander;
|
||||
var CloudFunc;
|
||||
|
||||
/* Key constants*/
|
||||
CloudCommander.KEY = {
|
||||
TAB : 9,
|
||||
ENTER : 13,
|
||||
|
||||
PAGE_DOWN : 34,
|
||||
END : 35,
|
||||
HOME : 36,
|
||||
UP : 38,
|
||||
DOWN : 40,
|
||||
|
||||
D : 68,
|
||||
Q : 81,
|
||||
R : 82,
|
||||
S : 83,
|
||||
|
||||
F2 : 113,
|
||||
F3 : 114,
|
||||
F4 : 115
|
||||
};
|
||||
|
||||
CloudCommander.keyBinding = (function(){
|
||||
"use strict";
|
||||
|
||||
|
|
@ -11,27 +33,8 @@ CloudCommander.keyBinding = (function(){
|
|||
right : 0
|
||||
|
||||
};
|
||||
|
||||
/* Key constants*/
|
||||
var lKEY = {
|
||||
TAB : 9,
|
||||
ENTER : 13,
|
||||
|
||||
PAGE_DOWN : 34,
|
||||
END : 35,
|
||||
HOME : 36,
|
||||
UP : 38,
|
||||
DOWN : 40,
|
||||
|
||||
D : 68,
|
||||
Q : 81,
|
||||
R : 82,
|
||||
S : 83,
|
||||
|
||||
F2 : 113,
|
||||
F3 : 114,
|
||||
F4 : 115
|
||||
};
|
||||
var lKEY = CloudCommander.KEY
|
||||
|
||||
var key_event = function(event){
|
||||
var lCurrentFile,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue