mirror of https://github.com/zulip/zulip.git
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:
parent
7dc7b1653c
commit
9df26a296f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue