mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore(cloudcmd) lint: keyword spacing
This commit is contained in:
parent
e32e3ff47d
commit
5f53da58e7
4 changed files with 6 additions and 6 deletions
|
|
@ -94,7 +94,7 @@ function KeyProto() {
|
|||
}
|
||||
|
||||
function getSymbol(shift, keyCode) {
|
||||
switch (keyCode) {
|
||||
switch(keyCode) {
|
||||
case KEY.DOT:
|
||||
return '.';
|
||||
|
||||
|
|
@ -143,7 +143,7 @@ function KeyProto() {
|
|||
next = current.nextSibling;
|
||||
}
|
||||
|
||||
switch (keyCode) {
|
||||
switch(keyCode) {
|
||||
case Key.TAB:
|
||||
DOM.changePanel();
|
||||
event.preventDefault();
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ module.exports = function setCurrentByChar(char, charStore) {
|
|||
const chars = charStore();
|
||||
const n = chars.length;
|
||||
|
||||
while(i < n && char === chars[i])
|
||||
while (i < n && char === chars[i])
|
||||
i++;
|
||||
|
||||
if (!i)
|
||||
|
|
|
|||
|
|
@ -275,7 +275,7 @@ function onDblClick(event) {
|
|||
});
|
||||
|
||||
event.preventDefault();
|
||||
}else{
|
||||
} else {
|
||||
CloudCmd.View.show();
|
||||
|
||||
event.preventDefault();
|
||||
|
|
@ -297,7 +297,7 @@ function onTouch(event) {
|
|||
path: DOM.getCurrentPath(current),
|
||||
});
|
||||
|
||||
}else{
|
||||
} else {
|
||||
CloudCmd.View.show();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -246,7 +246,7 @@ function onNameChange(name) {
|
|||
}
|
||||
|
||||
function onKey({keyCode, target}) {
|
||||
switch (keyCode) {
|
||||
switch(keyCode) {
|
||||
case Key.ESC:
|
||||
return hide();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue