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