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.

hotkey: Fix inbox hotkey not working.

Aman Agrawalbe9d3bd1f136
diff --git a/web/src/hotkey.ts b/web/src/hotkey.ts
index 8205945cf58..457aaffdaec 100644
--- a/web/src/hotkey.ts
+++ b/web/src/hotkey.ts
@@ -1230,7 +1230,11 @@ function process_hotkey(e: JQuery.KeyDownEvent, hotkey: Hotkey): boolean {
return true;
case "open_inbox":
// Focus search if already in (non-channel) inbox view.
- if (!inbox_util.is_channel_view() && !inbox_ui.is_search_focused()) {
+ if (
+ inbox_util.is_visible() &&
+ !inbox_util.is_channel_view() &&
+ !inbox_ui.is_search_focused()
+ ) {
inbox_ui.focus_inbox_search();
return true;
}