added visual configuration

This commit is contained in:
coderaiser 2012-08-30 07:35:34 -04:00
parent 5c53a0e907
commit 1a4bc81175
3 changed files with 38 additions and 2 deletions

View file

@ -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
View 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');
};
})();

View file

@ -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');