From 4effea5aa08f136bb4254108122c879a3f18a370 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 20 Aug 2012 06:11:10 -0400 Subject: [PATCH] minor changes --- lib/client/keyBinding.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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();//запрет на дальнейшее действие }