make sure answer area focused when typing answer

This commit is contained in:
Damien Elmes 2012-04-06 18:47:18 +09:00
parent 8dbfd676ef
commit a3a4f9772a

View file

@ -472,7 +472,8 @@ function showAnswer(txt) {
def _showAnswerButton(self):
self._bottomReady = True
self.bottom.web.setFocus()
if not self.typeCorrect:
self.bottom.web.setFocus()
middle = '''
<span class=stattxt>%s</span><br>
<button id=ansbut onclick='py.link(\"ans\");'>%s</button>''' % (