[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) {
|
'keydown .oe_searchview_input, .oe_searchview_facet': function (e) {
|
||||||
switch(e.which) {
|
switch(e.which) {
|
||||||
case $.ui.keyCode.LEFT:
|
case $.ui.keyCode.LEFT:
|
||||||
this.focusPreceding(this);
|
this.focusPreceding(e.target);
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
break;
|
break;
|
||||||
case $.ui.keyCode.RIGHT:
|
case $.ui.keyCode.RIGHT:
|
||||||
this.focusFollowing(this);
|
this.focusFollowing(e.target);
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue