[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:
parent
db40033a39
commit
3d43f9d454
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue