mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 06:07:11 -05:00
don't accept space to show answer if type answer mode
This commit is contained in:
parent
a9e7ecff12
commit
0ab355f87d
1 changed files with 5 additions and 2 deletions
|
|
@ -347,8 +347,11 @@ Please do not file a bug report with Anki.<br><br>""")
|
|||
return
|
||||
if self.state == "showQuestion":
|
||||
if evt.key() in (Qt.Key_Enter,
|
||||
Qt.Key_Return,
|
||||
Qt.Key_Space):
|
||||
Qt.Key_Return):
|
||||
evt.accept()
|
||||
return self.mainWin.showAnswerButton.click()
|
||||
elif evt.key() == Qt.Key_Space and not (
|
||||
self.currentCard.cardModel.typeAnswer):
|
||||
evt.accept()
|
||||
return self.mainWin.showAnswerButton.click()
|
||||
elif self.state == "showAnswer":
|
||||
|
|
|
|||
Loading…
Reference in a new issue