mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix(key) panel -> files
This commit is contained in:
parent
424cf51c1a
commit
14eeffb01f
1 changed files with 3 additions and 4 deletions
|
|
@ -102,14 +102,13 @@ var CloudCmd, Util, DOM;
|
|||
function setCurrentByLetter(pKeyCode) {
|
||||
var i, n, name, isCurrent, isContain,
|
||||
lCurrent = DOM.getCurrentFile(),
|
||||
panel = DOM.getPanel(),
|
||||
nodes = panel.childNodes,
|
||||
files = DOM.getFiles(),
|
||||
SMALL = 32,
|
||||
char = String.fromCharCode(pKeyCode + SMALL);
|
||||
|
||||
n = nodes.length;
|
||||
n = files.length;
|
||||
for (i = 2; i < n; i++) {
|
||||
lCurrent = panel.childNodes[i];
|
||||
lCurrent = files[i];
|
||||
name = DOM.getCurrentName(lCurrent);
|
||||
isContain = Util.isContainStrAtBegin(name, char);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue