From 0b95bab30bd67a40c7616a4c13bfaf026eb49c9f Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 22 Apr 2011 07:22:10 +0900 Subject: [PATCH] catch ret in type ans area --- aqt/reviewer.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/aqt/reviewer.py b/aqt/reviewer.py index 89f5b08d9..a3d44a740 100644 --- a/aqt/reviewer.py +++ b/aqt/reviewer.py @@ -155,6 +155,11 @@ function _onSpace() { py.link(document.activeElement.href); } } +function _typeAnsPress() { + if (window.event.keyCode === 13) { + _showans(); + } +} $(document).ready(function () { $(".ansbut").focus(); }); @@ -388,7 +393,8 @@ div#filler { return "" return """
- +
""" % ( self.getFont())