mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
added output for pressed keys
This commit is contained in:
parent
2a7b0bb83a
commit
4da252c441
2 changed files with 7 additions and 6 deletions
|
|
@ -1,5 +1,5 @@
|
|||
var CloudCommander;
|
||||
CloudCommander.Editor = { CloudMirror: undefined };
|
||||
CloudCommander.Editor = {};
|
||||
CloudCommander.Editor.CloudMirror = { load: (function(){
|
||||
|
||||
CloudCommander.jsload('http://codemirror.net/lib/codemirror.js', load_all(this));
|
||||
|
|
@ -52,12 +52,12 @@ CloudCommander.Editor.CloudMirror = { load: (function(){
|
|||
});
|
||||
|
||||
}
|
||||
}
|
||||
CloudCommander.jsload('http://codemirror.net/mode/xml/xml.js', lShowEditor_f)
|
||||
}
|
||||
};
|
||||
CloudCommander.jsload('http://codemirror.net/mode/xml/xml.js', lShowEditor_f);
|
||||
};
|
||||
}
|
||||
}),
|
||||
show : (function(){
|
||||
show : (function(){
|
||||
/* removing keyBinding if set */
|
||||
CloudCommander.keyBinded = false;
|
||||
left.className = 'panel hidden';
|
||||
|
|
@ -67,7 +67,7 @@ CloudCommander.Editor.CloudMirror = { load: (function(){
|
|||
|
||||
|
||||
|
||||
hide :(function() {
|
||||
hide :(function() {
|
||||
CloudCommander.keyBinded = true;
|
||||
CloudEditor.className='hidden';
|
||||
left.className = 'panel';
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ CloudCommander.keyBinding=(function(){
|
|||
* мы были на левой и
|
||||
* наоборот
|
||||
*/
|
||||
console.log(event.keyCode);
|
||||
if(event.keyCode===9){
|
||||
console.log('Tab pressed');
|
||||
try{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue