mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
allow enter to show answer when webview focused
This commit is contained in:
parent
e7dbeeacae
commit
06abd253df
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ The front of this card is empty. Please run Tools>Maintenance>Empty Cards.""")
|
|||
key = unicode(evt.text())
|
||||
if key == "e":
|
||||
self.mw.onEditCurrent()
|
||||
elif key == " " and self.state == "question":
|
||||
elif (key == " " or evt.key() in (Qt.Key_Return, Qt.Key_Enter)) and self.state == "question":
|
||||
self._showAnswerHack()
|
||||
elif key == "r":
|
||||
self.replayAudio()
|
||||
|
|
Loading…
Reference in a new issue