diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/js/sharedialogview.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/js/sharedialogview.js b/core/js/sharedialogview.js index 9709c734f60..cd7f07011c3 100644 --- a/core/js/sharedialogview.js +++ b/core/js/sharedialogview.js @@ -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 |