Ensure the Omnibox Dropdown does not autoselect suggestions.
This change fixes a problem, where a call to resetSelection() not only rewinds the selected suggestion position, but also selects the top suggestion, invoking an associated onSelect action. this causes problems with headers specifically, where HeaderSuggestion needs to clear the Omnibox input field when selected (eg. using DPAD on keyboard) as header suggestions do not have any associated suggestion text. This change ensures the resetSelection() call clears any currently selected input, allowing the keyboard management logic to let user select the first suggestion on the list by using DPAD down key. Tested on phones and tablets, with physical keyboard and accessibility features turned on. Bug: 1150877 Change-Id: Id794281e8aec33c5ea955b4ba0b4741d47237a26 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2553152 Commit-Queue: Tomasz Wiszkowski <ender@google.com> Reviewed-by:Filip Gorski <fgorski@chromium.org> Cr-Commit-Position: refs/heads/master@{#829950}
Showing
Please register or sign in to comment