minor changes

This commit is contained in:
coderaiser 2012-11-14 06:38:12 -05:00
parent 82d2c73086
commit 1771067856
5 changed files with 23 additions and 13 deletions

View file

@ -432,8 +432,8 @@ function initCmdButtons(pCallBack){
null,
null, /* f1 */
null, /* f2 */
cloudcmd.view, /* f3 */
cloudcmd.edit, /* f4 */
cloudcmd.Viewer, /* f3 */
cloudcmd.Editor, /* f4 */
null, /* f5 */
null, /* f6 */
null, /* f7 */

View file

@ -45,7 +45,7 @@
'<title>' + CloudFunc.setTitle() + '</title>');
if(!srv.Config.appcache)
pIndex = Util.removeStr(pIndex, ' manifest="/cloudcmd.appcache"');
pIndex = Util.removeStr(pIndex, ' manifest=/cloudcmd.appcache');
return pIndex;

View file

@ -222,9 +222,11 @@ var CloudCommander, Util, DOM, CloudFunc, CodeMirror;
}
}
};
/* добавляем обработчик клавишь */
DOM.addKeyListener( lKeyListener );
DOM.addKeyListener( lKeyListener );
DOM.getById('f4').onclick = Util.retLoadOnLoad( lShowCodemirror );
};
cloudcmd.Editor.CodeMirror = CodeMirrorEditor;

View file

@ -202,18 +202,26 @@ var CloudCommander, Util, DOM, CloudFunc, $;
FancyBox.load
]));
/* добавляем обработчик клавишь */
DOM.addKeyListener(function(){
var lView = function(){
FancyBox.show( DOM.getCurrentFile() );
};
var lKeyListener = function(){
var lF3 = cloudcmd.KEY.F3;
/* если клавиши можно обрабатывать */
if( KeyBinding.get() &&
event.keyCode === lF3 &&
event.shiftKey ){
FancyBox.show( DOM.getCurrentFile() );
lView();
event.preventDefault();
}
});
};
/* добавляем обработчик клавишь */
DOM.addKeyListener(lKeyListener);
DOM.getById('f3').onclick = lView;
};
cloudcmd.Viewer.FancyBox = FancyBox;

View file

@ -13,10 +13,10 @@
exports.WIN32 = isWin32();
/* Functions */
exports.require = mrequire,
exports.librequire = librequire,
exports.srvrequire = srvrequire,
exports.rootrequire = rootrequire,
exports.require = mrequire,
exports.librequire = librequire,
exports.srvrequire = srvrequire,
exports.rootrequire = rootrequire,
/* Native Modules*/
exports.child_process = require('child_process'),