Trigger upload action also with keyboard navigation on enter

Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
This commit is contained in:
Jan-Christoph Borchardt 2018-07-21 00:06:17 +02:00 committed by Daniel Calviño Sánchez
parent a2ad1b9aa9
commit d06e00ffe3
1 changed files with 5 additions and 0 deletions

View File

@ -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');
});
},
/**