Im using the autocomplete field as a search field.
When the user is selecting a suggestion (either by mouse selection, or by scrolling with arrow up and down and pressing enter), i want to capture the event and send the user to the view of that item.
But if the user is just typing in the textfield and presses enter (without selection a suggestion), i want to send him to the search-result-view.
Now the problem is that if i add a shortcutlistener to the autocomplete-field on ENTER, then it will make the select-listener not work, as the shortcutlistner is run first and then doing a normal search instead of navigation to the selected object...
Im using the autocomplete field as a search field.
When the user is selecting a suggestion (either by mouse selection, or by scrolling with arrow up and down and pressing enter), i want to capture the event and send the user to the view of that item.
But if the user is just typing in the textfield and presses enter (without selection a suggestion), i want to send him to the search-result-view.
Now the problem is that if i add a shortcutlistener to the autocomplete-field on ENTER, then it will make the select-listener not work, as the shortcutlistner is run first and then doing a normal search instead of navigation to the selected object...