also allow submission on space

This commit is contained in:
Stephen McQuay 2013-05-09 00:49:04 -07:00
parent b8e0bd64f6
commit a1286417ea
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
});