This commit is contained in:
Damien Elmes 2014-09-01 15:03:00 +09:00
commit 8420fa02d1

View file

@ -26,6 +26,8 @@ class EditCurrent(QDialog):
self.connect(self, self.connect(self,
SIGNAL("rejected()"), SIGNAL("rejected()"),
self.onSave) self.onSave)
self.form.buttonBox.button(QDialogButtonBox.Close).setShortcut(
QKeySequence("Ctrl+Return"))
self.editor = aqt.editor.Editor(self.mw, self.form.fieldsArea, self) self.editor = aqt.editor.Editor(self.mw, self.form.fieldsArea, self)
self.editor.setNote(self.mw.reviewer.card.note()) self.editor.setNote(self.mw.reviewer.card.note())
restoreGeom(self, "editcurrent") restoreGeom(self, "editcurrent")