Define Ctrl+Return in AddCardsAndClose

This commit is contained in:
Henrik Giesel 2019-01-18 03:39:15 +01:00
parent 49d6862538
commit b7258de5b7

View File

@ -1058,6 +1058,7 @@ class AnkiConnect:
def __init__(self, mw): def __init__(self, mw):
super().__init__(mw) super().__init__(mw)
self.addButton.setText("Add and Close") self.addButton.setText("Add and Close")
self.addButton.setShortcut(aqt.qt.QKeySequence("Ctrl+Return"))
def _addCards(self): def _addCards(self):
self.editor.saveAddModeVars() self.editor.saveAddModeVars()