compose: Fix "Shift+Tab" behavior for stream dropdown in compose box.

We now open the stream dropdown if a user presses "Shift+Tab" from
topic input in the compose box, instead of just changing the focus
to be on dropdown toggle button.
This commit is contained in:
Sahil Batra 2023-04-20 15:26:17 +05:30 committed by Tim Abbott
parent f4dc5afe82
commit c80807c962
1 changed files with 6 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import * as common from "./common";
import * as compose from "./compose"; import * as compose from "./compose";
import * as compose_actions from "./compose_actions"; import * as compose_actions from "./compose_actions";
import * as compose_banner from "./compose_banner"; import * as compose_banner from "./compose_banner";
import * as compose_recipient from "./compose_recipient";
import * as compose_state from "./compose_state"; import * as compose_state from "./compose_state";
import * as condense from "./condense"; import * as condense from "./condense";
import * as copy_and_paste from "./copy_and_paste"; import * as copy_and_paste from "./copy_and_paste";
@ -582,6 +583,11 @@ export function process_shift_tab_key() {
return emoji_picker.navigate("shift_tab"); return emoji_picker.navigate("shift_tab");
} }
if ($("#stream_message_recipient_topic").is(":focus")) {
compose_recipient.open_compose_stream_dropup();
return true;
}
return false; return false;
} }