From a1286417ea0a618e41a71135978d9807b981c2a9 Mon Sep 17 00:00:00 2001 From: Stephen McQuay Date: Thu, 9 May 2013 00:49:04 -0700 Subject: [PATCH] also allow submission on space --- static/math.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/math.js b/static/math.js index 8a577ae..f49a1c1 100644 --- a/static/math.js +++ b/static/math.js @@ -36,7 +36,7 @@ function deal_with_answer(e) { $(function() { new_problem(); $("#answer").keypress(function(e) { - if( e.which == 13) { + if (e.which == 13 || e.which == 32) { deal_with_answer(e); } });