mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -05:00
make sure answer area focused when typing answer
This commit is contained in:
parent
8dbfd676ef
commit
a3a4f9772a
1 changed files with 2 additions and 1 deletions
|
|
@ -472,7 +472,8 @@ function showAnswer(txt) {
|
||||||
|
|
||||||
def _showAnswerButton(self):
|
def _showAnswerButton(self):
|
||||||
self._bottomReady = True
|
self._bottomReady = True
|
||||||
self.bottom.web.setFocus()
|
if not self.typeCorrect:
|
||||||
|
self.bottom.web.setFocus()
|
||||||
middle = '''
|
middle = '''
|
||||||
<span class=stattxt>%s</span><br>
|
<span class=stattxt>%s</span><br>
|
||||||
<button id=ansbut onclick='py.link(\"ans\");'>%s</button>''' % (
|
<button id=ansbut onclick='py.link(\"ans\");'>%s</button>''' % (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue