mirror of https://github.com/zulip/zulip.git
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:
parent
32f206e1e5
commit
9d0dded959
|
@ -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}});
|
||||
|
|
|
@ -226,6 +226,7 @@ function handle_keydown(e) {
|
|||
// typing a next message!
|
||||
$("#compose-send-button").trigger("focus");
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
}
|
||||
} else {
|
||||
// Enter
|
||||
|
|
Loading…
Reference in New Issue