add esc to unblur type answer area, remove duplicate o shortcut

This commit is contained in:
Damien Elmes 2011-03-28 10:42:37 +09:00
parent 363571cc94
commit 3142be2023
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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();")