summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/file-selector.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/file-selector.js b/js/file-selector.js
index 687920d0..6a7e6773 100644
--- a/js/file-selector.js
+++ b/js/file-selector.js
@@ -147,7 +147,7 @@ $(document).on('keypress click', '.dropzone, .dropzone .file-hint', function (e)
e.stopPropagation();
// accept mosue click or Enter
- if (e.which != 1 || e.which != 13)
+ if (e.which != 1 && e.which != 13)
return;
var $fileSelector = $('<input type="file" multiple>');