diff --git a/client/key/index.js b/client/key/index.js index eaec52e5..6cb11e4d 100644 --- a/client/key/index.js +++ b/client/key/index.js @@ -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(); diff --git a/client/key/set-current-by-char.js b/client/key/set-current-by-char.js index d010fa86..42705377 100644 --- a/client/key/set-current-by-char.js +++ b/client/key/set-current-by-char.js @@ -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) diff --git a/client/listeners/index.js b/client/listeners/index.js index ac6031be..d0b5439e 100644 --- a/client/listeners/index.js +++ b/client/listeners/index.js @@ -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(); } } diff --git a/client/modules/config.js b/client/modules/config.js index 5f9eb14e..a66d1504 100644 --- a/client/modules/config.js +++ b/client/modules/config.js @@ -246,7 +246,7 @@ function onNameChange(name) { } function onKey({keyCode, target}) { - switch (keyCode) { + switch(keyCode) { case Key.ESC: return hide();