mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 17:04:16 +00:00
fix(key) tab
This commit is contained in:
parent
f248207dfe
commit
904da50131
1 changed files with 9 additions and 5 deletions
|
|
@ -162,7 +162,7 @@ var CloudCmd, Util, DOM;
|
|||
}
|
||||
|
||||
function switchKey(pEvent) {
|
||||
var i, n, id, obj,
|
||||
var i, n, id, obj, files,
|
||||
current = Info.element,
|
||||
panel = Info.panel,
|
||||
path = Info.path,
|
||||
|
|
@ -178,15 +178,19 @@ var CloudCmd, Util, DOM;
|
|||
switch (lKeyCode) {
|
||||
case Key.TAB:
|
||||
id = panel.id;
|
||||
TabPanel[id] = current;
|
||||
TabPanel[id] = current;
|
||||
|
||||
panel = Info.panelPassive;
|
||||
id = panel.id;
|
||||
|
||||
current = TabPanel[id];
|
||||
current = TabPanel[id];
|
||||
|
||||
if (current && current.parentElement)
|
||||
DOM.setCurrentFile(current);
|
||||
if (current) {
|
||||
files = current.parentElement;
|
||||
|
||||
if (files && files.parentElement)
|
||||
DOM.setCurrentFile(current);
|
||||
}
|
||||
else {
|
||||
current = filesPassive[0];
|
||||
DOM.setCurrentFile(current);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue