From d4b458745b3ce41082e8b686fb04754a24883b9a Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Thu, 26 Oct 2023 20:49:58 +0200 Subject: [PATCH] Updated keyboard shortcuts --- sbapp/main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sbapp/main.py b/sbapp/main.py index 19fbecd..d5cd9db 100644 --- a/sbapp/main.py +++ b/sbapp/main.py @@ -760,6 +760,8 @@ class SidebandApp(MDApp): if len(modifiers) > 0 and modifiers[0] == 'ctrl' and (text == "w"): if self.root.ids.screen_manager.current == "conversations_screen": self.quit_action(self) + elif self.root.ids.screen_manager.current == "map_settings_screen": + self.close_sub_map_action() elif self.root.ids.screen_manager.current == "object_details_screen": self.object_details_screen.close_action() else: @@ -821,8 +823,10 @@ class SidebandApp(MDApp): self.close_sub_hardware_action() elif self.root.ids.screen_manager.current == "hardware_serial_screen": self.close_sub_hardware_action() - if self.root.ids.screen_manager.current == "object_details_screen": + elif self.root.ids.screen_manager.current == "object_details_screen": self.object_details_screen.close_action() + elif self.root.ids.screen_manager.current == "map_settings_screen": + self.close_sub_map_action() else: self.open_conversations(direction="right")