Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

compose: Keeps focus on channel picker input during navigation.

Aditya Kumar Kasaudhanfbb05163856d
diff --git a/web/src/compose_recipient.ts b/web/src/compose_recipient.ts
index 32d832f4f6a..46e24cc65cf 100644
--- a/web/src/compose_recipient.ts
+++ b/web/src/compose_recipient.ts
@@ -304,6 +304,13 @@ export function initialize(): void {
tippy_props: {
offset: [-10, 5],
},
+ keep_focus_on_search: true,
+ tab_moves_focus_to_target() {
+ if (compose_state.get_message_type() === "stream") {
+ return "#stream_message_recipient_topic";
+ }
+ return "#private_message_recipient";
+ },
});
compose_select_recipient_dropdown_widget.setup();