Trigger upload actions only for Enter & Space keys
Signed-off-by: Kevin Ndung'u <kevgathuku@gmail.com>
This commit is contained in:
parent
d06e00ffe3
commit
1cdf808197
|
@ -237,8 +237,10 @@
|
|||
OC.Util.scaleFixForIE8(this.$('.svg'));
|
||||
|
||||
// Trigger upload action also with keyboard navigation on enter
|
||||
this.$el.find('[for="file_upload_start"]').on('keypress', function() {
|
||||
this.$el.find('[for="file_upload_start"]').on('keyup', function(event) {
|
||||
if (event.key === " " || event.key === "Enter") {
|
||||
$('#file_upload_start').trigger('click');
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue