Merge pull request #648 from odoo-dev/7.0-fix-searchbar-navigation-ged
authorxmo-odoo <xmo-odoo@users.noreply.github.com>
Thu, 19 Jun 2014 11:31:41 +0000 (13:31 +0200)
committerxmo-odoo <xmo-odoo@users.noreply.github.com>
Thu, 19 Jun 2014 11:31:41 +0000 (13:31 +0200)
[FIX] fixes searchbar navigation (web client)

addons/web/static/src/js/search.js

index 1f61620..30b381d 100644 (file)
@@ -331,11 +331,11 @@ instance.web.SearchView = instance.web.Widget.extend(/** @lends instance.web.Sea
         'keydown .oe_searchview_input, .oe_searchview_facet': function (e) {
             switch(e.which) {
             case $.ui.keyCode.LEFT:
-                this.focusPreceding(this);
+                this.focusPreceding(e.target);
                 e.preventDefault();
                 break;
             case $.ui.keyCode.RIGHT:
-                this.focusFollowing(this);
+                this.focusFollowing(e.target);
                 e.preventDefault();
                 break;
             }