From 4ef45e73fead11551ed63c28e3a37c54c9a359db Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 30 Jul 2012 05:06:56 -0400 Subject: [PATCH] from now CodeMirror js files loads, when f4 key pressd --- lib/client/keyBinding.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/client/keyBinding.js b/lib/client/keyBinding.js index dd11dfb9..69b9c187 100644 --- a/lib/client/keyBinding.js +++ b/lib/client/keyBinding.js @@ -54,10 +54,15 @@ CloudCommander.keyBinding=(function(){ }catch(error){console.log(error);} } /* if f3 pressed */ - else if(event.keyCode===114){ - if (typeof CloudCommander.Viewer === 'function'){ + else if(event.keyCode===114){ + if (typeof CloudCommander.Viewer === 'function') CloudCommander.Viewer(); - } + } + + /* if f4 pressed */ + else if(event.keyCode === 115) { + if (typeof CloudCommander.Editor === 'function') + CloudCommander.Editor(); } /* навигация по таблице файлов*/ /* если нажали клавишу вверх*/