mirror of https://github.com/zulip/zulip.git
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:
parent
274eac3313
commit
6411dbe124
|
@ -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":
|
||||
|
|
Loading…
Reference in New Issue