diff --git a/static/js/composebox_typeahead.js b/static/js/composebox_typeahead.js index 7a01098d8a..b212863a1f 100644 --- a/static/js/composebox_typeahead.js +++ b/static/js/composebox_typeahead.js @@ -185,16 +185,28 @@ function handle_keydown(e) { const on_pm = target_sel === "#private_message_recipient"; const on_compose = target_sel === "#compose-textarea"; - if (on_compose && code === 13) { - if (exports.should_enter_send(e)) { - e.preventDefault(); - if (!$("#compose-send-button").prop("disabled")) { - $("#compose-send-button").prop("disabled", true); - compose.finish(); + if (on_compose) { + if (code === 9) { + // This if branch is only here to make Tab+Enter work on Safari, + // which does not make