[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:
committed by
Aaron Bohy
parent
104a86f1c8
commit
d2f024d254
@@ -1370,6 +1370,7 @@ var FieldText = InputField.extend(TranslatableFieldMixin, {
|
|||||||
*/
|
*/
|
||||||
_onKeydown: function (ev) {
|
_onKeydown: function (ev) {
|
||||||
if (ev.which === $.ui.keyCode.ENTER) {
|
if (ev.which === $.ui.keyCode.ENTER) {
|
||||||
|
ev.stopPropagation();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this._super.apply(this, arguments);
|
this._super.apply(this, arguments);
|
||||||
|
|||||||
Reference in New Issue
Block a user