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.

hotkeys: Don't pass input to RT when non-RT search is in focus.

Aman Agrawala45d3af3e3f6
diff --git a/static/js/hotkey.js b/static/js/hotkey.js
index fdc452773fa..236d58c2b54 100644
--- a/static/js/hotkey.js
+++ b/static/js/hotkey.js
@@ -480,7 +480,10 @@ exports.process_hotkey = function (e, hotkey) {
if (
["#recent_topics", "#", ""].includes(window.location.hash) &&
!popovers.any_active() &&
- !overlays.is_active()
+ !overlays.is_active() &&
+ !$("#searchbox_form #search_query").is(":focus") &&
+ !$(".user-list-filter").is(":focus") &&
+ !$(".stream-list-filter").is(":focus")
) {
return recent_topics.change_focused_element(e, event_name);
}