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.

inbox: Allow user to escape out of empty inbox list.

Aman Agrawal6411dbe1247a
diff --git a/web/src/inbox_ui.js b/web/src/inbox_ui.js
index 0a35a7380f3..43601969c24 100644
--- a/web/src/inbox_ui.js
+++ b/web/src/inbox_ui.js
@@ -674,6 +674,9 @@ export function change_focused_element(input_key) {
focus_muted_filter();
return true;
case "escape":
+ if (get_all_rows().length === 0) {
+ return false;
+ }
set_list_focus();
return true;
case "shift_tab":