composebox_typeahead.js: Remove unnecessary special case for zulip.com.

This was originally introduced in
025b79d98b, which is far back in ancient
history when compose had a different shape (predates enter-sends,
too), and regardless, this code never affected anything but zulip.com.
This commit is contained in:
Rishi Gupta 2017-03-13 12:12:05 -07:00 committed by Tim Abbott
parent 7dc7b1653c
commit 9df26a296f
1 changed files with 1 additions and 2 deletions

View File

@ -131,8 +131,7 @@ function handle_keydown(e) {
// want to change focus right away in the private_message_recipient box since it
// takes the typeaheads a little time to open after the user finishes typing, which
// can lead to the focus moving without the autocomplete having a chance to happen.
if ((page_params.domain === "zulip.com" && nextFocus === "compose-send-button") ||
(page_params.domain !== "zulip.com" && nextFocus)) {
if (nextFocus) {
ui.focus_on(nextFocus);
nextFocus = false;
}