summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2018-07-21 00:06:17 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2018-07-24 19:02:56 +0200
commitd06e00ffe3a6c0660107ce6f4a5766674640610f (patch)
tree432505be1a45b2318dc5724003b5480a589331f6 /apps
parenta2ad1b9aa920ce3c07c2a2d1cfb32832a59775b3 (diff)
downloadnextcloud-server-d06e00ffe3a6c0660107ce6f4a5766674640610f.tar.gz
nextcloud-server-d06e00ffe3a6c0660107ce6f4a5766674640610f.zip
Trigger upload action also with keyboard navigation on enter
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/newfilemenu.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files/js/newfilemenu.js b/apps/files/js/newfilemenu.js
index 32720cab99b..3581b2cd8fc 100644
--- a/apps/files/js/newfilemenu.js
+++ b/apps/files/js/newfilemenu.js
@@ -235,6 +235,11 @@
items: this._menuItems
}));
OC.Util.scaleFixForIE8(this.$('.svg'));
+
+ // Trigger upload action also with keyboard navigation on enter
+ this.$el.find('[for="file_upload_start"]').on('keypress', function() {
+ $('#file_upload_start').trigger('click');
+ });
},
/**