diff --git a/lib/client/keyBinding.js b/lib/client/keyBinding.js index 073ac15d..99a65bbf 100644 --- a/lib/client/keyBinding.js +++ b/lib/client/keyBinding.js @@ -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();//запрет на дальнейшее действие }