Skip to content

Commit

Permalink
Fix #281
Browse files Browse the repository at this point in the history
  • Loading branch information
kra-mo committed Jul 18, 2024
1 parent 7efa179 commit 7367e40
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cartridges/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("<primary>", "<meta>") for s in action[1]),
(
tuple(s.replace("<primary>", "<meta>") for s in action[1])
if sys.platform == "darwin"
else action[1]
),
)

scope.add_action(simple_action)
Expand Down

0 comments on commit 7367e40

Please sign in to comment.