diff --git a/core/js/sharedialogview.js b/core/js/sharedialogview.js index 9709c734f605f32d80f9894322ae74af0fee928a..cd7f07011c3ded24efc2d65472a1c15acffe7251 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