Skip to content
Permalink
Browse files

MDL-46386 question Whitelist the Atto editor from return blocking

Prevent the question engine from blocking return/enter key presses
from being sent to the Atto editor.
  • Loading branch information...
merrill-oakland committed Jul 16, 2014
1 parent 8b3d19c commit 519eec044c9f32c655f36bd1e18ecb6a58850c99
Showing with 1 addition and 1 deletion.
  1. +1 −1 question/qengine.js
@@ -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');

0 comments on commit 519eec0

Please sign in to comment.
You can’t perform that action at this time.