mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
refactor(key) charBig -> char, char -> charSmall
This commit is contained in:
parent
29f1cbbc5e
commit
2ca1ac53ba
1 changed files with 3 additions and 3 deletions
|
|
@ -110,8 +110,8 @@ var CloudCmd, Util, DOM;
|
|||
lCurrent = DOM.getCurrentFile(),
|
||||
files = DOM.getFiles(),
|
||||
SMALL = 32,
|
||||
charBig = String.fromCharCode(pKeyCode),
|
||||
char = String.fromCharCode(pKeyCode + SMALL);
|
||||
char = String.fromCharCode(pKeyCode),
|
||||
charSmall = String.fromCharCode(pKeyCode + SMALL);
|
||||
|
||||
n = Chars.length;
|
||||
for (i = 0; i < n; i++)
|
||||
|
|
@ -128,7 +128,7 @@ var CloudCmd, Util, DOM;
|
|||
for (i = 0; i < n; i++) {
|
||||
lCurrent = files[i];
|
||||
name = DOM.getCurrentName(lCurrent);
|
||||
isContain = Util.isContainStrAtBegin(name, [char, charBig]);
|
||||
isContain = Util.isContainStrAtBegin(name, [char, charSmall]);
|
||||
|
||||
if (isContain) {
|
||||
byName = DOM.getCurrentFileByName(name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue