suspend card option in reviewer

This commit is contained in:
Damien Elmes 2013-01-29 09:46:17 +09:00
parent 19012e6110
commit b1d9a39e36

View File

@ -280,6 +280,8 @@ The front of this card is empty. Please run Tools>Maintenance>Empty Cards.""")
self.onBuryNote()
elif key == "!":
self.onSuspend()
elif key == "@":
self.onSuspendCard()
elif key == "V":
self.onRecordVoice()
elif key == "o":
@ -655,6 +657,7 @@ function showAnswer(txt) {
opts = [
[_("Mark Note"), "*", self.onMark],
[_("Bury Note"), "-", self.onBuryNote],
[_("Suspend Card"), "@", self.onSuspendCard],
[_("Suspend Note"), "!", self.onSuspend],
[_("Delete Note"), "Delete", self.onDelete],
[_("Options"), "O", self.onOptions],
@ -694,6 +697,12 @@ function showAnswer(txt) {
tooltip(_("Note suspended."))
self.mw.reset()
def onSuspendCard(self):
self.mw.checkpoint(_("Suspend"))
self.mw.col.sched.suspendCards([self.card.id])
tooltip(_("Card suspended."))
self.mw.reset()
def onDelete(self):
# need to check state because the shortcut is global to the main
# window