mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
added tab support
This commit is contained in:
parent
804dd90dc6
commit
9dc2c31889
1 changed files with 15 additions and 2 deletions
|
|
@ -24,9 +24,22 @@ CloudCommander.keyBinding=(function(){
|
|||
*/
|
||||
if(event.keyCode===9){
|
||||
console.log('Tab pressed');
|
||||
|
||||
var lCURRENT_FILE = CloudCommander.CURRENT_FILE;
|
||||
try{
|
||||
lCurrentFile=getByClass(CloudCommander.CURRENT_FILE)[0];
|
||||
}catch(error){console.log(error);}
|
||||
lCurrentFile = getByClass(lCURRENT_FILE)[0];
|
||||
|
||||
/* changing parent panel of curent-file */
|
||||
var lId = lCurrentFile.parentElement.id;
|
||||
if(lId === 'right')lId = 'left';
|
||||
else lId = 'right';
|
||||
|
||||
lCurrentFile.className = '';
|
||||
|
||||
getById(lId).getByTagName('li')[2]
|
||||
.className = lCURRENT_FILE;
|
||||
|
||||
}catch(error){console.log(error);}
|
||||
}
|
||||
/* if f3 pressed */
|
||||
else if(event.keyCode===114){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue