Update lib/client/editor.js

This commit is contained in:
coderaiser 2012-08-14 12:34:10 +03:00
parent d51d138ee1
commit ee455c53f8

View file

@ -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();
}
}
});