mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
focus 'resume now' button
This commit is contained in:
parent
1d6bcd8a76
commit
43c8777c7f
1 changed files with 3 additions and 1 deletions
|
@ -374,7 +374,7 @@ Are you sure?""")):
|
|||
return
|
||||
self.web.setLinkHandler(lambda url: self.delayedMaybeReset())
|
||||
i = _("Waiting for editing to finish.")
|
||||
b = self.button("refresh", _("Resume Now"))
|
||||
b = self.button("refresh", _("Resume Now"), id="resume")
|
||||
self.web.stdHtml("""
|
||||
<center><div style="height: 100%%">
|
||||
<div style="position:relative; vertical-align: middle;">
|
||||
|
@ -382,6 +382,8 @@ Are you sure?""")):
|
|||
%s</div></div></center>
|
||||
""" % (i, b), css=self.sharedCSS)
|
||||
self.bottomWeb.hide()
|
||||
self.web.setFocus()
|
||||
self.web.eval("$('#resume').focus()")
|
||||
|
||||
# HTML helpers
|
||||
##########################################################################
|
||||
|
|
Loading…
Reference in a new issue