fix(key) switchKey: empty current

This commit is contained in:
coderaiser 2014-04-22 04:44:32 -04:00
parent f3ebf2c44f
commit 964373e0a7

View file

@ -156,17 +156,22 @@ var CloudCmd, Util, DOM;
}
function switchKey(event) {
var i, obj, name, isSelected, isDir,
var i, obj, name, isSelected, isDir, prev, next,
current = Info.element,
panel = Info.panel,
path = Info.path,
prev = current.previousSibling,
next = current.nextSibling,
lKeyCode = event.keyCode,
shift = event.shiftKey,
lAlt = event.altKey,
ctrl = event.ctrlKey;
if (current) {
prev = current.previousSibling;
next = current.nextSibling;
} else {
console.trace();
}
switch (lKeyCode) {
case Key.TAB:
DOM.changePanel()