fix(key) tab

This commit is contained in:
coderaiser 2014-03-21 07:28:41 -04:00
parent f248207dfe
commit 904da50131

View file

@ -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);