also allow submission on space
This commit is contained in:
parent
b8e0bd64f6
commit
a1286417ea
@ -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);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user