From 55256d0f393f1cba55054ef48aee03bc5e2f9b7c Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 22 Apr 2012 07:03:35 +0900 Subject: [PATCH] accept ctrl+alt+shift+c for reuse # cloze --- aqt/editor.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aqt/editor.py b/aqt/editor.py index ca4d803c9..51acda338 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -376,6 +376,9 @@ class Editor(object): but = b("cloze", self.onCloze, _("Ctrl+Shift+C"), _("Cloze deletion (Ctrl+Shift+C)"), text="[...]") but.setFixedWidth(24) + s = self.clozeShortcut2 = QShortcut( + QKeySequence(_("Ctrl+Alt+Shift+C")), self.parentWindow) + s.connect(s, SIGNAL("activated()"), self.onCloze) # fixme: better image names b("mail-attachment", self.onAddMedia, _("F3"), _("Attach pictures/audio/video (F3)"))