From 6411dbe1247a4c7b523db921a6ea5426e36c4235 Mon Sep 17 00:00:00 2001 From: Aman Agrawal Date: Tue, 19 Sep 2023 19:05:04 +0000 Subject: [PATCH] inbox: Allow user to escape out of empty inbox list. Now pressing escape would work to set focus out of inbox if inbox is empty. --- web/src/inbox_ui.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/src/inbox_ui.js b/web/src/inbox_ui.js index 0a35a7380f..43601969c2 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":