Fix #1355
This commit is contained in:
parent
996f4c637f
commit
e295c4ccfb
@ -50,6 +50,7 @@ actions-remove-notetype = Remove Notetype
|
|||||||
actions-update-notetype = Update Notetype
|
actions-update-notetype = Update Notetype
|
||||||
actions-update-config = Update Config
|
actions-update-config = Update Config
|
||||||
actions-card-info = Card Info
|
actions-card-info = Card Info
|
||||||
|
actions-previous-card-info = Previous Card Info
|
||||||
|
|
||||||
## Flags
|
## Flags
|
||||||
|
|
||||||
|
@ -190,6 +190,7 @@ class Reviewer:
|
|||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
||||||
def nextCard(self) -> None:
|
def nextCard(self) -> None:
|
||||||
|
self.previous_card = self.card
|
||||||
self.card = None
|
self.card = None
|
||||||
self._v3 = None
|
self._v3 = None
|
||||||
|
|
||||||
@ -456,6 +457,7 @@ class Reviewer:
|
|||||||
("Shift+v", self.onRecordVoice),
|
("Shift+v", self.onRecordVoice),
|
||||||
("o", self.onOptions),
|
("o", self.onOptions),
|
||||||
("i", self.on_card_info),
|
("i", self.on_card_info),
|
||||||
|
("Ctrl+i", self.on_previous_card_info),
|
||||||
("1", lambda: self._answerCard(1)),
|
("1", lambda: self._answerCard(1)),
|
||||||
("2", lambda: self._answerCard(2)),
|
("2", lambda: self._answerCard(2)),
|
||||||
("3", lambda: self._answerCard(3)),
|
("3", lambda: self._answerCard(3)),
|
||||||
@ -908,6 +910,7 @@ time = %(time)d;
|
|||||||
[tr.actions_suspend_card(), "@", self.suspend_current_card],
|
[tr.actions_suspend_card(), "@", self.suspend_current_card],
|
||||||
[tr.actions_options(), "O", self.onOptions],
|
[tr.actions_options(), "O", self.onOptions],
|
||||||
[tr.actions_card_info(), "I", self.on_card_info],
|
[tr.actions_card_info(), "I", self.on_card_info],
|
||||||
|
[tr.actions_previous_card_info(), "Ctrl+I", self.on_previous_card_info],
|
||||||
None,
|
None,
|
||||||
[tr.studying_mark_note(), "*", self.toggle_mark_on_current_note],
|
[tr.studying_mark_note(), "*", self.toggle_mark_on_current_note],
|
||||||
[tr.studying_bury_note(), "=", self.bury_current_note],
|
[tr.studying_bury_note(), "=", self.bury_current_note],
|
||||||
@ -958,6 +961,10 @@ time = %(time)d;
|
|||||||
def onOptions(self) -> None:
|
def onOptions(self) -> None:
|
||||||
confirm_deck_then_display_options(self.card)
|
confirm_deck_then_display_options(self.card)
|
||||||
|
|
||||||
|
def on_previous_card_info(self) -> None:
|
||||||
|
if self.previous_card:
|
||||||
|
CardInfoDialog(parent=self.mw, mw=self.mw, card=self.previous_card)
|
||||||
|
|
||||||
def on_card_info(self) -> None:
|
def on_card_info(self) -> None:
|
||||||
if self.card:
|
if self.card:
|
||||||
CardInfoDialog(parent=self.mw, mw=self.mw, card=self.card)
|
CardInfoDialog(parent=self.mw, mw=self.mw, card=self.card)
|
||||||
|
Loading…
Reference in New Issue
Block a user