From 7367e40cb301a16a0b2ffbab7e9661f8e841c2a4 Mon Sep 17 00:00:00 2001 From: kramo Date: Thu, 18 Jul 2024 11:30:28 +0200 Subject: [PATCH] Fix #281 --- cartridges/main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cartridges/main.py b/cartridges/main.py index b12ad7c1a..340d81006 100644 --- a/cartridges/main.py +++ b/cartridges/main.py @@ -399,7 +399,11 @@ def create_actions(self, actions: set) -> None: if action[1:2]: self.set_accels_for_action( f"app.{action[0]}" if scope == self else f"win.{action[0]}", - tuple(s.replace("", "") for s in action[1]), + ( + tuple(s.replace("", "") for s in action[1]) + if sys.platform == "darwin" + else action[1] + ), ) scope.add_action(simple_action)