mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
accept space/enter when focus on answer buttons is lost
This commit is contained in:
parent
8ceef95199
commit
32f1d9c70b
1 changed files with 5 additions and 2 deletions
|
@ -263,8 +263,11 @@ The front of this card is empty. Please run Tools>Maintenance>Empty Cards.""")
|
||||||
key = unicode(evt.text())
|
key = unicode(evt.text())
|
||||||
if key == "e":
|
if key == "e":
|
||||||
self.mw.onEditCurrent()
|
self.mw.onEditCurrent()
|
||||||
elif (key == " " or evt.key() in (Qt.Key_Return, Qt.Key_Enter)) and self.state == "question":
|
elif (key == " " or evt.key() in (Qt.Key_Return, Qt.Key_Enter)):
|
||||||
|
if self.state == "question":
|
||||||
self._showAnswerHack()
|
self._showAnswerHack()
|
||||||
|
elif self.state == "answer":
|
||||||
|
self._answerCard(self._defaultEase())
|
||||||
elif key == "r" or evt.key() == Qt.Key_F5:
|
elif key == "r" or evt.key() == Qt.Key_F5:
|
||||||
self.replayAudio()
|
self.replayAudio()
|
||||||
elif key == "*":
|
elif key == "*":
|
||||||
|
|
Loading…
Reference in a new issue