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.

recent_view: Set current_focus_elem to search on `x` keypress.

Aman Agrawalcda28b8aa62c
diff --git a/web/src/recent_view_ui.ts b/web/src/recent_view_ui.ts
index 3905be3771d..4e45105c420 100644
--- a/web/src/recent_view_ui.ts
+++ b/web/src/recent_view_ui.ts
@@ -2185,6 +2185,10 @@ export function initialize({
pre_search_topic_viewport_offset = undefined;
});
+ $("body").on("click", "#recent-view-search-wrapper .input-close-filter-button", () => {
+ set_default_focus();
+ });
+
$("body").on("click", "#recent-view-content-table .on_hover_topic_read", (e) => {
e.stopPropagation();
assert(e.currentTarget instanceof HTMLElement);