Skip to content
Browse files

MDL-26332 cannot type Enter into a textarea in a quiz.

This was breaking the essay question type.
  • Loading branch information...
1 parent f7d843d commit b729648032e8bdd997fdf59ed70231f37256ddb3 @timhunt timhunt committed Feb 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 question/qengine.js
View
2 question/qengine.js
@@ -15,7 +15,7 @@ M.core_question_engine.init_form = function(Y, form) {
Y.one(form).setAttribute('autocomplete', 'off');
Y.on('key', function (e) {
if (!e.target.test('a') && !e.target.test('input[type=submit]') &&
- !e.target.test('input[type=img]')) {
+ !e.target.test('input[type=img]') && !e.target.test('textarea')) {
e.preventDefault();
}
}, form, 'press:13');

0 comments on commit b729648

Please sign in to comment.
Something went wrong with that request. Please try again.