From 34177f0caad057b9b260322137d4127ad8a312e3 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 16 Nov 2008 03:03:34 +0900 Subject: [PATCH] fix recent deck shortcuts --- ankiqt/ui/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index f843a6feb..ef8ca42a8 100644 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -538,7 +538,10 @@ class AnkiQt(QMainWindow): n = 1 for file in self.config['recentDeckPaths']: a = QAction(self) - a.setShortcut(_("Ctrl+%d" % n)) + if sys.platform.startswith("darwin"): + a.setShortcut(_("Ctrl+Alt+%d" % n)) + else: + a.setShortcut(_("Alt+%d" % n)) a.setText(os.path.basename(file)) a.setStatusTip(os.path.abspath(file)) self.connect(a, SIGNAL("triggered()"),