mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
remove delete shortcut from More menu
This commit is contained in:
parent
6e933793f6
commit
dd9acf0145
1 changed files with 3 additions and 2 deletions
|
@ -714,7 +714,7 @@ function showAnswer(txt) {
|
||||||
[_("Bury Note"), "=", self.onBuryNote],
|
[_("Bury Note"), "=", self.onBuryNote],
|
||||||
[_("Suspend Card"), "@", self.onSuspendCard],
|
[_("Suspend Card"), "@", self.onSuspendCard],
|
||||||
[_("Suspend Note"), "!", self.onSuspend],
|
[_("Suspend Note"), "!", self.onSuspend],
|
||||||
[_("Delete Note"), "Delete", self.onDelete],
|
[_("Delete Note"), None, self.onDelete],
|
||||||
[_("Options"), "O", self.onOptions],
|
[_("Options"), "O", self.onOptions],
|
||||||
None,
|
None,
|
||||||
[_("Replay Audio"), "R", self.replayAudio],
|
[_("Replay Audio"), "R", self.replayAudio],
|
||||||
|
@ -728,6 +728,7 @@ function showAnswer(txt) {
|
||||||
continue
|
continue
|
||||||
label, scut, func = row
|
label, scut, func = row
|
||||||
a = m.addAction(label)
|
a = m.addAction(label)
|
||||||
|
if scut:
|
||||||
a.setShortcut(QKeySequence(scut))
|
a.setShortcut(QKeySequence(scut))
|
||||||
a.triggered.connect(func)
|
a.triggered.connect(func)
|
||||||
runHook("Reviewer.contextMenuEvent",self,m)
|
runHook("Reviewer.contextMenuEvent",self,m)
|
||||||
|
|
Loading…
Reference in a new issue