Trigger upload action also with keyboard navigation on enter
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
This commit is contained in:
parent
a2ad1b9aa9
commit
d06e00ffe3
1 changed files with 5 additions and 0 deletions
|
@ -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');
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue