summaryrefslogtreecommitdiffstats
path: root/apps/files/js/keyboardshortcuts.js
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-07-31 21:21:02 +0200
committerkondou <kondou@ts.unde.re>2013-07-31 21:21:02 +0200
commitaaf0fec9f54bc6f9eef5df00441d593e053ee74b (patch)
treeca65f4c20b8d1e698d815a3b5970926023093478 /apps/files/js/keyboardshortcuts.js
parent50101a85a63f29c47abe325aecb3af26bc8a96d1 (diff)
downloadnextcloud-server-aaf0fec9f54bc6f9eef5df00441d593e053ee74b.tar.gz
nextcloud-server-aaf0fec9f54bc6f9eef5df00441d593e053ee74b.zip
Fix some JSLint warnings
Diffstat (limited to 'apps/files/js/keyboardshortcuts.js')
-rw-r--r--apps/files/js/keyboardshortcuts.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/js/keyboardshortcuts.js b/apps/files/js/keyboardshortcuts.js
index cc2b5d42139..1d3bae925bc 100644
--- a/apps/files/js/keyboardshortcuts.js
+++ b/apps/files/js/keyboardshortcuts.js
@@ -131,7 +131,7 @@ var Files = Files || {};
return;
}
var preventDefault = false;
- if ($.inArray(event.keyCode, keys) === -1) keys.push(event.keyCode);
+ if ($.inArray(event.keyCode, keys) === -1) { keys.push(event.keyCode); }
if (
$.inArray(keyCodes.n, keys) !== -1 && ($.inArray(keyCodes.cmdFirefox, keys) !== -1 || $.inArray(keyCodes.cmdOpera, keys) !== -1 || $.inArray(keyCodes.leftCmdWebKit, keys) !== -1 || $.inArray(keyCodes.rightCmdWebKit, keys) !== -1 || $.inArray(keyCodes.ctrl, keys) !== -1 || event.ctrlKey)) {
preventDefault = true; //new file/folder prevent browser from responding
@@ -165,4 +165,4 @@ var Files = Files || {};
removeA(keys, event.keyCode);
});
};
-})(Files); \ No newline at end of file
+})(Files);