[FIX] web: allow line return in textareas

Before this commit, textareas in x2many would not allow line return
when pressing enter.

Now, it does.
This commit is contained in:
Julien Mougenot
2019-09-25 06:16:54 +00:00
committed by Aaron Bohy
parent 104a86f1c8
commit d2f024d254
@@ -1370,6 +1370,7 @@ var FieldText = InputField.extend(TranslatableFieldMixin, {
*/
_onKeydown: function (ev) {
if (ev.which === $.ui.keyCode.ENTER) {
ev.stopPropagation();
return;
}
this._super.apply(this, arguments);