From dd9acf014561f40ad14a680c8b5aea4e814c8eaa Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 10 Jan 2017 18:39:31 +1000 Subject: [PATCH] remove delete shortcut from More menu --- aqt/reviewer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/aqt/reviewer.py b/aqt/reviewer.py index 1a5579dfb..02ddb9614 100644 --- a/aqt/reviewer.py +++ b/aqt/reviewer.py @@ -714,7 +714,7 @@ function showAnswer(txt) { [_("Bury Note"), "=", self.onBuryNote], [_("Suspend Card"), "@", self.onSuspendCard], [_("Suspend Note"), "!", self.onSuspend], - [_("Delete Note"), "Delete", self.onDelete], + [_("Delete Note"), None, self.onDelete], [_("Options"), "O", self.onOptions], None, [_("Replay Audio"), "R", self.replayAudio], @@ -728,7 +728,8 @@ function showAnswer(txt) { continue label, scut, func = row a = m.addAction(label) - a.setShortcut(QKeySequence(scut)) + if scut: + a.setShortcut(QKeySequence(scut)) a.triggered.connect(func) runHook("Reviewer.contextMenuEvent",self,m) m.exec_(QCursor.pos())