diff --git a/lib/client/editor.js b/lib/client/editor.js index 09854907..5b418b31 100644 --- a/lib/client/editor.js +++ b/lib/client/editor.js @@ -197,12 +197,17 @@ CloudCommander.Editor.Keys = (function(){ /* добавляем обработчик клавишь */ if (document.addEventListener) document.addEventListener('keydown', key_event,false); - - else + + else{ + var lFunc; + if(typeof document.onkeydown === 'function') + lFunc = document.onkeydown; + document.onkeydown = function(){ - if(typeof document.onkeypress === 'function') - document.onkeydown(); + if(lFunc) + lFunc(); key_event(); } + } }); \ No newline at end of file