summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2016-04-27 16:35:04 +0200
committerqsm-odoo <qsm@odoo.com>2016-04-27 17:01:16 +0200
commit324dbcde573a65081b59932bcdc023cb5878d2bb (patch)
tree2d214b8364bb515f61ed95f14401b731bf724a87 /addons/web/static/src
parent7922370f1252a2482a8a77f91babb88145aff96c (diff)
[FIX] web: editable list, up/down navigation on m2o
The current behavior was allowing going on the previous row if the user is at the start of an editable element and on the next row if the user is at the end of an editable element. The problem was, we did not want this behavior when the editable element is a select or m2o (as the up and down input should open the select/m2o dropdown instead).
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/js/views/list_view_editable.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/js/views/list_view_editable.js b/addons/web/static/src/js/views/list_view_editable.js
index 00da5704784..32968d7e1f3 100644
--- a/addons/web/static/src/js/views/list_view_editable.js
+++ b/addons/web/static/src/js/views/list_view_editable.js
@@ -721,13 +721,13 @@ ListView.include(/** @lends instance.web.ListView# */{
keyup_UP: function (e) {
var self = this;
return this._key_move_record(e, 'pred', function (el, cursor) {
- return self._at_start(cursor, el);
+ return self._at_start(cursor, el) && !$(el).is('select,.ui-autocomplete-input');
});
},
keyup_DOWN: function (e) {
var self = this;
return this._key_move_record(e, 'succ', function (el, cursor) {
- return self._at_end(cursor, el);
+ return self._at_end(cursor, el) && !$(el).is('select,.ui-autocomplete-input');
});
},