composebox_typeahead: Don't propagate after handling tab.

After we set focus manually to the send button, `tab` propagation
should be stopped.
This commit is contained in:
Aman Agrawal 2021-11-12 04:53:19 +00:00 committed by Tim Abbott
parent 32f206e1e5
commit 9d0dded959
2 changed files with 2 additions and 0 deletions

View File

@ -1054,6 +1054,7 @@ test("initialize", ({override, mock_template}) => {
id: "stream_message_recipient_stream",
},
preventDefault: noop,
stopPropagation: noop,
};
$("#stream_message_recipient_topic").data = () => ({typeahead: {shown: true}});

View File

@ -226,6 +226,7 @@ function handle_keydown(e) {
// typing a next message!
$("#compose-send-button").trigger("focus");
e.preventDefault();
e.stopPropagation();
}
} else {
// Enter