mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
Update lib/client/editor.js
This commit is contained in:
parent
d51d138ee1
commit
ee455c53f8
1 changed files with 9 additions and 4 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue