[FIX] web: listview editable tab key to go to next line

This was not working if the last field of the line was a DOM element
without any descendant (example: a simple input element).
This commit is contained in:
qsm-odoo
2015-09-29 15:14:39 +02:00
parent 51a923a734
commit 1574f1c506
@@ -781,7 +781,7 @@ ListView.include(/** @lends instance.web.ListView# */{
.last()
.value();
// tabbed from last field in form
if (last_field && last_field.$el.has(e.target).length) {
if (last_field && $(e.target).closest(last_field.el).length) {
e.preventDefault();
return this._next();
}