also allow submission on space

This commit is contained in:
Stephen McQuay 2013-05-09 00:49:04 -07:00
parent b8e0bd64f6
commit a1286417ea

View File

@ -36,7 +36,7 @@ function deal_with_answer(e) {
$(function() { $(function() {
new_problem(); new_problem();
$("#answer").keypress(function(e) { $("#answer").keypress(function(e) {
if( e.which == 13) { if (e.which == 13 || e.which == 32) {
deal_with_answer(e); deal_with_answer(e);
} }
}); });