Reland Printer settings: Make saved/nearby printers use FocusRowBehavior
This is a reland of 4f4586fd Issue: FocusRowBehavior was not initializing properly which caused "keydown" events to target the Polymer element itself, most likely through event retargeting (http://shortn/_Nfy2DTMeen). Fix: After populating nearby printers, wait for the next render of the nearby printers page to ensure the FocusRowBehavior setup is completed. With this change, the element with the "focus-row-control" attribute now consistently becomes the focused element when navigating through the printer entries. Original change's description: > Printer settings: Make saved/nearby printers use FocusRowBehavior > > Description: > This change allows users to tab to the first printer in the saved > and nearby printer lists and use the arrow keys to navigate the > remaining printers. Users can also use the arrow keys to navigate > through a printer entry's associated buttons/icons. Lastly, the > printer entry row will be highlighted (blue background) if it is > being focused. > > Screenshots: > - http://shortn/_Fqf1Nn9qjF nearby printers > - http://shortn/_BSspETkjzV saved printers > > Bug: 987422 > Test: gtest_filter=OSSettingsCupsPrinterLandingPageV3Test.All > Change-Id: I68fc5fc3ff2ceec88ce81f95da5b451a6ad3beb1 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2399601 > Reviewed-by: Jimmy Gong <jimmyxgong@chromium.org> > Commit-Queue: Michael Checo <michaelcheco@google.com> > Cr-Commit-Position: refs/heads/master@{#809354} Bug: 987422 Change-Id: I0982fe466e2c16d2b5b4a0f364808e223a668793 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2432306 Commit-Queue: Michael Checo <michaelcheco@google.com> Reviewed-by:Jimmy Gong <jimmyxgong@chromium.org> Cr-Commit-Position: refs/heads/master@{#815456}
Showing
Please register or sign in to comment