mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 09:24:51 +00:00
fix(key) switchKey: empty current
This commit is contained in:
parent
f3ebf2c44f
commit
964373e0a7
1 changed files with 8 additions and 3 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue