mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-24 03:05:41 +00:00
minor changes
This commit is contained in:
parent
82d2c73086
commit
1771067856
5 changed files with 23 additions and 13 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue