[FIX] fixes searchbar navigation (web client)

the code handling the keydown events was moved, but the variable this
was not adjusted accordingly, resulting in a broken navigation.

It is now possible to press LEFT and RIGHT again to move the focus
between facets.
This commit is contained in:
Géry Debongnie 2014-06-19 12:43:25 +02:00
parent db40033a39
commit 3d43f9d454
1 changed files with 2 additions and 2 deletions

View 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;
}