Skip to content

Commit

Permalink
Use tab to complete selected entry to the share entry
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Oct 25, 2018
1 parent 8a57415 commit 57d6c07
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions core/js/sharedialogview.js
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,16 @@
_onSelectRecipient: function(e, s) {
var self = this;

if (e.keyCode == 9) {
e.preventDefault();
e.target.value = s.item.label;
setTimeout(function() {
$(e.target).attr('disabled', false)
.autocomplete('search', $(e.target).val());
}, 0);
return false;
}

e.preventDefault();
// Ensure that the keydown handler for the input field is not
// called; otherwise it would try to add the recipient again, which
Expand Down

0 comments on commit 57d6c07

Please sign in to comment.