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")
|
self._linkHandler("study")
|
||||||
elif txt == "c":
|
elif txt == "c":
|
||||||
self._linkHandler("cram")
|
self._linkHandler("cram")
|
||||||
elif txt == "o":
|
|
||||||
self._linkHandler("opts")
|
|
||||||
elif txt == "d":
|
elif txt == "d":
|
||||||
self._linkHandler("list")
|
self._linkHandler("list")
|
||||||
elif txt == "g":
|
elif txt == "g":
|
||||||
|
@ -128,7 +126,7 @@ $(function () {
|
||||||
buf += line % (
|
buf += line % (
|
||||||
_("Whole Deck"),
|
_("Whole Deck"),
|
||||||
counts[2], counts[3],
|
counts[2], counts[3],
|
||||||
but("opts", _("Study Options"), "o"))
|
but("opts", _("Study Options")))
|
||||||
buf += "</table>"
|
buf += "</table>"
|
||||||
return buf
|
return buf
|
||||||
|
|
||||||
|
|
|
@ -242,6 +242,8 @@ $(".ansbut").focus();
|
||||||
show = True
|
show = True
|
||||||
elif evt.key() == Qt.Key_Space and self.typeAns() is None:
|
elif evt.key() == Qt.Key_Space and self.typeAns() is None:
|
||||||
show = True
|
show = True
|
||||||
|
elif evt.key() == Qt.Key_Escape:
|
||||||
|
self.web.eval("$('#typeans').blur();")
|
||||||
if show:
|
if show:
|
||||||
self._showAnswer()
|
self._showAnswer()
|
||||||
self.web.eval("showans();")
|
self.web.eval("showans();")
|
||||||
|
|
Loading…
Reference in a new issue