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.
This commit is contained in:
Aman Agrawal 2023-09-19 19:05:04 +00:00 committed by Tim Abbott
parent 274eac3313
commit 6411dbe124
1 changed files with 3 additions and 0 deletions

View File

@ -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":