From 3fecb368e5610bf5cf01bed7badaf568a6763ca6 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Thu, 26 Oct 2023 18:57:35 +0200 Subject: [PATCH] Added hotkeys --- sbapp/main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sbapp/main.py b/sbapp/main.py index 1217123..5739812 100644 --- a/sbapp/main.py +++ b/sbapp/main.py @@ -769,7 +769,10 @@ class SidebandApp(MDApp): self.message_send_action() if len(modifiers) > 0 and modifiers[0] == 'ctrl' and (text == "l"): - self.announces_action(self) + if self.root.ids.screen_manager.current == "map_screen": + self.map_layers_action() + else: + self.announces_action(self) if len(modifiers) > 0 and modifiers[0] == 'ctrl' and (text == "m"): if self.root.ids.screen_manager.current == "messages_screen": @@ -3350,7 +3353,6 @@ class SidebandApp(MDApp): self.map.zoom = minz m = self.map - RNS.log(f"Map {m.lat} {m.lon} {m.zoom}") nlat = self.map.lat nlon = self.map.lon if nlat < -89: nlat = -89