mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
add esc to unblur type answer area, remove duplicate o shortcut
This commit is contained in:
parent
363571cc94
commit
3142be2023
2 changed files with 3 additions and 3 deletions
|
@ -35,8 +35,6 @@ class Overview(object):
|
|||
self._linkHandler("study")
|
||||
elif txt == "c":
|
||||
self._linkHandler("cram")
|
||||
elif txt == "o":
|
||||
self._linkHandler("opts")
|
||||
elif txt == "d":
|
||||
self._linkHandler("list")
|
||||
elif txt == "g":
|
||||
|
@ -128,7 +126,7 @@ $(function () {
|
|||
buf += line % (
|
||||
_("Whole Deck"),
|
||||
counts[2], counts[3],
|
||||
but("opts", _("Study Options"), "o"))
|
||||
but("opts", _("Study Options")))
|
||||
buf += "</table>"
|
||||
return buf
|
||||
|
||||
|
|
|
@ -242,6 +242,8 @@ $(".ansbut").focus();
|
|||
show = True
|
||||
elif evt.key() == Qt.Key_Space and self.typeAns() is None:
|
||||
show = True
|
||||
elif evt.key() == Qt.Key_Escape:
|
||||
self.web.eval("$('#typeans').blur();")
|
||||
if show:
|
||||
self._showAnswer()
|
||||
self.web.eval("showans();")
|
||||
|
|
Loading…
Reference in a new issue