diff options
Diffstat (limited to 'apps/files/js/newfilemenu.js')
-rw-r--r-- | apps/files/js/newfilemenu.js | 5 |
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'); + }); }, /** |