mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
added beforeLoad property
This commit is contained in:
parent
b83485906c
commit
7417903fe7
1 changed files with 5 additions and 7 deletions
|
|
@ -7,6 +7,9 @@ CloudCommander.Viewer = {getByClass : function(pClass){
|
|||
}};
|
||||
CloudCommander.Viewer.FancyBox = {
|
||||
config: {
|
||||
beforeShow : (function(){
|
||||
CloudCommander.keyBinded = false;
|
||||
}),
|
||||
beforeClose: (function(){
|
||||
CloudCommander.keyBinded = true;
|
||||
}),
|
||||
|
|
@ -73,9 +76,7 @@ CloudCommander.Viewer.Keys = (function(){
|
|||
/* если клавиши можно обрабатывать */
|
||||
if(CloudCommander.keyBinded){
|
||||
/* if f4 pressed */
|
||||
if(event.keyCode===114){
|
||||
CloudCommander.keyBinded = false;
|
||||
|
||||
if(event.keyCode===114){
|
||||
CloudCommander.Viewer.FancyBox.set();
|
||||
var lCurrent = pParent.getByClass('current-file');
|
||||
lCurrent.length &&
|
||||
|
|
@ -98,8 +99,5 @@ CloudCommander.Viewer.Keys = (function(){
|
|||
document.addEventListener('keydown', key_event(this),false);
|
||||
|
||||
else
|
||||
document.onkeypress=key_event;
|
||||
|
||||
/* клавиши назначены*/
|
||||
CloudCommander.keyBinded=true;
|
||||
document.onkeypress=key_event;
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue