mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
refactor(key) Tab: add " "
This commit is contained in:
parent
d5adbd3b1f
commit
b3b0e1da1a
1 changed files with 11 additions and 10 deletions
|
|
@ -52,7 +52,6 @@ var CloudCmd, Util, DOM;
|
|||
lTabPanel = {
|
||||
left : 0,
|
||||
right : 0
|
||||
|
||||
};
|
||||
|
||||
this.isBind = function() {return Binded;};
|
||||
|
|
@ -80,18 +79,20 @@ var CloudCmd, Util, DOM;
|
|||
switch (lKeyCode) {
|
||||
case Key.TAB:
|
||||
/* changing parent panel of curent-file */
|
||||
var lPanel = DOM.getPanel(),
|
||||
lId = lPanel.id;
|
||||
var lFirstFileOnList,
|
||||
lPanel = DOM.getPanel(),
|
||||
lId = lPanel.id;
|
||||
|
||||
lTabPanel[lId] = lCurrent;
|
||||
lTabPanel[lId] = lCurrent;
|
||||
|
||||
lPanel = DOM.getPanel({active:false});
|
||||
lId = lPanel.id;
|
||||
lPanel = DOM.getPanel({active:false});
|
||||
lId = lPanel.id;
|
||||
|
||||
if (lTabPanel[lId])
|
||||
DOM.setCurrentFile(lTabPanel[lId]);
|
||||
else{
|
||||
var lFirstFileOnList = DOM.getByTag('li', lPanel)[2];
|
||||
lCurrent = lTabPanel[lId];
|
||||
if (lCurrent)
|
||||
DOM.setCurrentFile(lCurrent);
|
||||
else {
|
||||
lFirstFileOnList = DOM.getByTag('li', lPanel)[2];
|
||||
|
||||
DOM.setCurrentFile(lFirstFileOnList);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue