Skip to content

Commit

Permalink
MDL-46386 question Whitelist the Atto editor from return blocking
Browse files Browse the repository at this point in the history
Prevent the question engine from blocking return/enter key presses
from being sent to the Atto editor.
  • Loading branch information
ericmerrill committed Jul 21, 2014
1 parent 5fd0df9 commit 84f74cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion question/qengine.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ M.core_question_engine.init_form = function(Y, form) {

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('textarea')) {
!e.target.test('input[type=img]') && !e.target.test('textarea') && !e.target.test('[contenteditable=true]')) {
e.preventDefault();
}
}, form, 'press:13');
Expand Down

0 comments on commit 84f74cc

Please sign in to comment.