Use tab to complete selected entry to the share entry

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2018-10-25 21:36:44 +02:00
parent 7a65779316
commit e8e898ede8
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 10 additions and 0 deletions

View File

@ -539,6 +539,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