Change menu button focus on mouse down
When a button on the action bar has focus, clicking on any menu button fails to grab focus from any existing focus item, leaving the previously focused button as selected. Checks for currently focused element. If a button has focus, let the browser perform the default action which will set the menu button as the focused element. If the focus is on any other element, leave it alone (e.g. in the case where a row in the file list has focus, we don't want to change that due to the menu activation). Bug: 906566 Tests: browser_test --gtest_filter="*MultiMenu" Change-Id: I32ab6b5e52771298c13fae51c2b13fba9cf996b7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1935567 Commit-Queue: Alex Danilo <adanilo@chromium.org> Commit-Queue: Noel Gordon <noel@chromium.org> Reviewed-by:Noel Gordon <noel@chromium.org> Cr-Commit-Position: refs/heads/master@{#719003}
Showing
Please register or sign in to comment