Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

This was breaking the essay question type.
  • Loading branch information...
commit b729648032e8bdd997fdf59ed70231f37256ddb3 1 parent f7d843d
Tim Hunt timhunt authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  question/qengine.js
2  question/qengine.js
@@ -15,7 +15,7 @@ M.core_question_engine.init_form = function(Y, form) {
15 15 Y.one(form).setAttribute('autocomplete', 'off');
16 16 Y.on('key', function (e) {
17 17 if (!e.target.test('a') && !e.target.test('input[type=submit]') &&
18   - !e.target.test('input[type=img]')) {
  18 + !e.target.test('input[type=img]') && !e.target.test('textarea')) {
19 19 e.preventDefault();
20 20 }
21 21 }, form, 'press:13');

0 comments on commit b729648

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