remove delete shortcut from More menu
This commit is contained in:
parent
6e933793f6
commit
dd9acf0145
@ -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,7 +728,8 @@ function showAnswer(txt) {
|
|||||||
continue
|
continue
|
||||||
label, scut, func = row
|
label, scut, func = row
|
||||||
a = m.addAction(label)
|
a = m.addAction(label)
|
||||||
a.setShortcut(QKeySequence(scut))
|
if scut:
|
||||||
|
a.setShortcut(QKeySequence(scut))
|
||||||
a.triggered.connect(func)
|
a.triggered.connect(func)
|
||||||
runHook("Reviewer.contextMenuEvent",self,m)
|
runHook("Reviewer.contextMenuEvent",self,m)
|
||||||
m.exec_(QCursor.pos())
|
m.exec_(QCursor.pos())
|
||||||
|
Loading…
Reference in New Issue
Block a user