mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -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)
|
self.form.buttonBox.addButton(b, QDialogButtonBox.ActionRole)
|
||||||
else:
|
else:
|
||||||
b = QPushButton(_("Add"))
|
b = QPushButton(_("Add"))
|
||||||
|
b.setShortcut(QKeySequence("Ctrl+N"))
|
||||||
|
b.setToolTip(_("Add New Deck (Ctrl+N)"))
|
||||||
self.form.buttonBox.addButton(b, QDialogButtonBox.ActionRole)
|
self.form.buttonBox.addButton(b, QDialogButtonBox.ActionRole)
|
||||||
b.connect(b, SIGNAL("clicked()"), self.onAddDeck)
|
b.connect(b, SIGNAL("clicked()"), self.onAddDeck)
|
||||||
if title:
|
if title:
|
||||||
|
|
Loading…
Reference in a new issue