From 1350c9c33822d803c633dcf9b6e54fad7c4ef5f5 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 19 Nov 2008 18:43:24 +0900 Subject: [PATCH] change shortcuts to avoid conflicts, remove alt-a indicator --- ankiqt/ui/addcards.py | 2 +- ankiqt/ui/modelchooser.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ankiqt/ui/addcards.py b/ankiqt/ui/addcards.py index 4ad257a75..3c48d53d8 100644 --- a/ankiqt/ui/addcards.py +++ b/ankiqt/ui/addcards.py @@ -46,7 +46,7 @@ class AddCards(QDialog): QDesktopServices.openUrl(QUrl(ankiqt.appWiki + "AddItems")) def addButtons(self): - self.addButton = QPushButton(_("&Add")) + self.addButton = QPushButton(_("Add")) self.dialog.buttonBox.addButton(self.addButton, QDialogButtonBox.ActionRole) self.addButton.setShortcut(_("Ctrl+Return")) diff --git a/ankiqt/ui/modelchooser.py b/ankiqt/ui/modelchooser.py index 654cf1e1f..db612b251 100644 --- a/ankiqt/ui/modelchooser.py +++ b/ankiqt/ui/modelchooser.py @@ -23,7 +23,7 @@ class ModelChooser(QHBoxLayout): label = QLabel(_("Model:")) self.addWidget(label) self.models = QComboBox() - s = QShortcut(QKeySequence(_("Ctrl+Alt+m")), self.parent) + s = QShortcut(QKeySequence(_("Shift+Alt+m")), self.parent) s.connect(s, SIGNAL("activated()"), lambda: self.models.showPopup()) self.drawModels() @@ -40,7 +40,7 @@ class ModelChooser(QHBoxLayout): self.connect(self.add, SIGNAL("clicked()"), self.onAdd) self.edit = QPushButton() self.edit.setIcon(QIcon(":/icons/edit.png")) - self.edit.setShortcut(_("Ctrl+Alt+e")) + self.edit.setShortcut(_("Shift+Alt+e")) self.edit.setToolTip(_("Edit the current model")) self.edit.setAutoDefault(False) self.addWidget(self.edit)