mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
fixed bug with processing key pressing of Cloud Editor if it's window is hidden.
This commit is contained in:
parent
864b73dcb3
commit
77fac251ff
1 changed files with 9 additions and 2 deletions
|
|
@ -108,8 +108,15 @@ CloudCommander.Editor.Keys = (function(){
|
|||
CloudCommander.Editor.CloudMirror.load();
|
||||
|
||||
var key_event=function(event){
|
||||
/* если клавиши можно обрабатывать*/
|
||||
if(CloudCommander.keyBinded){
|
||||
|
||||
/* getting CloudEditor element */
|
||||
var lEditorHidden= CloudCommander.Editor.CloudMirror.getById('CloudEditor');
|
||||
lEditorHidden &&
|
||||
lEditorHidden = lEditorHidden.className;
|
||||
/* если клавиши можно обрабатывать
|
||||
* и CloudEditor не спрятан
|
||||
*/
|
||||
if(CloudCommander.keyBinded && !lEditorHidden){
|
||||
/* if f4 pressed */
|
||||
if(event.keyCode===115){
|
||||
CloudCommander.Editor.CloudMirror.show();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue