fix recent deck shortcuts

This commit is contained in:
Damien Elmes 2008-11-16 03:03:34 +09:00
parent 252534423c
commit 34177f0caa

View file

@ -538,7 +538,10 @@ class AnkiQt(QMainWindow):
n = 1 n = 1
for file in self.config['recentDeckPaths']: for file in self.config['recentDeckPaths']:
a = QAction(self) 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.setText(os.path.basename(file))
a.setStatusTip(os.path.abspath(file)) a.setStatusTip(os.path.abspath(file))
self.connect(a, SIGNAL("triggered()"), self.connect(a, SIGNAL("triggered()"),