diff --git a/zulipterminal/ui_tools/views.py b/zulipterminal/ui_tools/views.py index e7d5d007cf..4c23cba861 100644 --- a/zulipterminal/ui_tools/views.py +++ b/zulipterminal/ui_tools/views.py @@ -415,6 +415,11 @@ def keypress(self, size: urwid_Size, key: str) -> Optional[str]: self.search_status = SearchStatus.DEFAULT self.view.controller.update_screen() return key + elif is_command_key("ALL_MESSAGES", key): + self.view.controller.narrow_to_all_messages() + self.view.show_left_panel(visible=False) + self.view.body.focus_position = 1 + return key return super().keypress(size, key) @@ -543,6 +548,11 @@ def keypress(self, size: urwid_Size, key: str) -> Optional[str]: self.search_status = SearchStatus.DEFAULT self.view.controller.update_screen() return key + elif is_command_key("ALL_MESSAGES", key): + self.view.controller.narrow_to_all_messages() + self.view.show_left_panel(visible=False) + self.view.body.focus_position = 1 + return key return super().keypress(size, key) @@ -790,6 +800,11 @@ def keypress(self, size: urwid_Size, key: str) -> Optional[str]: self.search_status = SearchStatus.DEFAULT self.view.controller.update_screen() return key + elif is_command_key("ALL_MESSAGES", key): + self.view.controller.narrow_to_all_messages() + self.view.show_right_panel(visible=False) + self.view.body.focus_position = 1 + return key elif is_command_key("GO_LEFT", key): self.view.show_right_panel(visible=False) return super().keypress(size, key)