summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
Diffstat (limited to 'static')
-rw-r--r--static/import.js14
1 files changed, 12 insertions, 2 deletions
diff --git a/static/import.js b/static/import.js
index aa29b87..29922f6 100644
--- a/static/import.js
+++ b/static/import.js
@@ -75,10 +75,20 @@ const bytesToSize = (bytes) => {
/* MAIN */
document.addEventListener('DOMContentLoaded', () => {
- importInput.addEventListener("keyup", (e) => {
- if (e.keyCode === 13) {
+ importInput.addEventListener("keypress", (e) => {
+ if (e.keyCode == 9) {
+ urlSelected();
e.preventDefault();
+ e.stopPropagation();
+ return;
+ }
+
+ if (e.keyCode === 13 || e.keyCode == 10) {
+ e.preventDefault();
+ e.stopPropagation();
+ urlSelected();
importButton.click();
+ return;
}
});
}, false)