mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
allow enter to close change note type diag (#651)
This commit is contained in:
parent
3de7b34fc6
commit
7e74248901
1 changed files with 1 additions and 0 deletions
|
@ -31,6 +31,7 @@ class ModelChooser(QHBoxLayout):
|
|||
self.models.setToolTip(shortcut(_("Change Note Type (Ctrl+N)")))
|
||||
s = QShortcut(QKeySequence(_("Ctrl+N")), self.widget)
|
||||
s.connect(s, SIGNAL("activated()"), self.onModelChange)
|
||||
self.models.setAutoDefault(False)
|
||||
self.addWidget(self.models)
|
||||
self.connect(self.models, SIGNAL("clicked()"), self.onModelChange)
|
||||
# layout
|
||||
|
|
Loading…
Reference in a new issue