mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
added visual configuration
This commit is contained in:
parent
5c53a0e907
commit
1a4bc81175
3 changed files with 38 additions and 2 deletions
10
client.js
10
client.js
|
|
@ -688,6 +688,16 @@ CloudClient.Editor = (function(pCurrentFile, pIsReadOnly) {
|
|||
});
|
||||
});
|
||||
|
||||
|
||||
CloudClient.Config = (function() {
|
||||
Util.jsload(CloudClient.LIBDIRCLIENT +
|
||||
'config.js',{
|
||||
onload: function(){
|
||||
CloudCommander.Config.Keys();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
CloudClient.GoogleAnalytics = (function(){
|
||||
/* google analytics */
|
||||
var lFunc = document.onmousemove;
|
||||
|
|
|
|||
13
lib/client/config.js
Normal file
13
lib/client/config.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/* gui module for config.json editing */
|
||||
var CloudCommander;
|
||||
|
||||
(function(){
|
||||
"use strict";
|
||||
|
||||
CloudCommander.Config = {};
|
||||
|
||||
CloudCommander.Config.Keys = function(){
|
||||
console.log('config.js loaded');
|
||||
};
|
||||
|
||||
})();
|
||||
|
|
@ -14,7 +14,9 @@ CloudCommander.KEY = {
|
|||
DOWN : 40,
|
||||
|
||||
D : 68,
|
||||
Q : 81,
|
||||
|
||||
O : 79,
|
||||
Q : 81,
|
||||
R : 82,
|
||||
S : 83,
|
||||
|
||||
|
|
@ -44,12 +46,23 @@ CloudCommander.keyBinding = (function(){
|
|||
lName, i;
|
||||
/* если клавиши можно обрабатывать*/
|
||||
if(CloudCommander.keyBinded && event){
|
||||
|
||||
/* open configuration window */
|
||||
if(event.keyCode === lKEY.O && event.altKey){
|
||||
console.log('openning config window...');
|
||||
|
||||
Util.Images.showLoad();
|
||||
if (typeof CloudCommander.Config === 'function')
|
||||
CloudCommander.Config();
|
||||
|
||||
}
|
||||
|
||||
/* если нажали таб:
|
||||
* переносим курсор на
|
||||
* правую панель, если
|
||||
* мы были на левой и
|
||||
* наоборот
|
||||
*/
|
||||
*/
|
||||
if(event.keyCode === lKEY.TAB){
|
||||
console.log('Tab pressed');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue