[FIX] web: view_form.js, allow press enter to break line in fieldtextwidget
bzr revid: dle@openerp.com-20140115120844-1z0pbh9pc63tllce
This commit is contained in:
parent
4d73f955a9
commit
6109102e91
|
@ -2612,6 +2612,11 @@ instance.web.form.FieldText = instance.web.form.AbstractField.extend(instance.we
|
|||
e.stopPropagation();
|
||||
}
|
||||
},
|
||||
'keypress': function (e) {
|
||||
if (e.which === $.ui.keyCode.ENTER) {
|
||||
e.stopPropagation();
|
||||
}
|
||||
},
|
||||
'change textarea': 'store_dom_value',
|
||||
},
|
||||
initialize_content: function() {
|
||||
|
|
Loading…
Reference in New Issue