minor changes

This commit is contained in:
coderaiser 2012-08-20 06:11:10 -04:00
parent 5f7dd729d9
commit 4effea5aa0

View file

@ -83,13 +83,12 @@ CloudCommander.keyBinding = (function(){
/* if f3 or shift+f3 pressed */
else if(event.keyCode === lKEY.F3){
if(event.shiftKey){
if (typeof CloudCommander.Viewer === 'function')
if(event.shiftKey &&
typeof CloudCommander.Viewer === 'function')
CloudCommander.Viewer();
else if (typeof CloudCommander.Editor === 'function')
CloudCommander.Editor(true);
}
else if (typeof CloudCommander.Editor === 'function')
CloudCommander.Editor(true);
event.preventDefault();//запрет на дальнейшее действие
}