mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
add shortcut
This commit is contained in:
parent
1bac992c97
commit
2c836a7d62
1 changed files with 2 additions and 0 deletions
|
@ -25,6 +25,8 @@ class StudyDeck(QDialog):
|
|||
self.form.buttonBox.addButton(b, QDialogButtonBox.ActionRole)
|
||||
else:
|
||||
b = QPushButton(_("Add"))
|
||||
b.setShortcut(QKeySequence("Ctrl+N"))
|
||||
b.setToolTip(_("Add New Deck (Ctrl+N)"))
|
||||
self.form.buttonBox.addButton(b, QDialogButtonBox.ActionRole)
|
||||
b.connect(b, SIGNAL("clicked()"), self.onAddDeck)
|
||||
if title:
|
||||
|
|
Loading…
Reference in a new issue