mirror of
https://github.com/ankitects/anki.git
synced 2025-11-10 22:57:11 -05:00
add shortcuts back to browser
This commit is contained in:
parent
fbfbda1a58
commit
c4c3bf102a
1 changed files with 10 additions and 1 deletions
|
|
@ -1098,7 +1098,16 @@ your deck."""))
|
|||
layout.addWidget(l, c+1, 2)
|
||||
# open
|
||||
openButton = QPushButton(_("Open"))
|
||||
openButton.setToolTip(_("Open this deck"))
|
||||
if c < 9:
|
||||
if sys.platform.startswith("darwin"):
|
||||
extra = _(" (Command+Option+%d)") % (c+1)
|
||||
openButton.setShortcut(_("Ctrl+Alt+%d" % (c+1)))
|
||||
else:
|
||||
extra = _(" (Ctrl+%d)") % (c+1)
|
||||
openButton.setShortcut(_("Alt+%d" % (c+1)))
|
||||
else:
|
||||
extra = ""
|
||||
openButton.setToolTip(_("Open this deck%s") % extra)
|
||||
self.connect(openButton, SIGNAL("clicked()"),
|
||||
lambda d=deck['path']: self.loadDeck(d))
|
||||
layout.addWidget(openButton, c+1, 4)
|
||||
|
|
|
|||
Loading…
Reference in a new issue