diff --git a/zulipterminal/ui_tools/views.py b/zulipterminal/ui_tools/views.py index aa912cfdc7..db464b1fcc 100644 --- a/zulipterminal/ui_tools/views.py +++ b/zulipterminal/ui_tools/views.py @@ -415,6 +415,8 @@ 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.home_button.activate(key) return super().keypress(size, key) @@ -543,6 +545,8 @@ 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.home_button.activate(key) return super().keypress(size, key) @@ -790,6 +794,8 @@ 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.home_button.activate(key) elif is_command_key("GO_LEFT", key): self.view.show_right_panel(visible=False) return super().keypress(size, key) @@ -949,6 +955,8 @@ def keypress(self, size: urwid_Size, key: str) -> Optional[str]: return key elif is_command_key("GO_RIGHT", key): self.view.show_left_panel(visible=False) + elif is_command_key("ALL_MESSAGES", key): + self.view.home_button.activate(key) return super().keypress(size, key)