DevTools: Make close button keyboard accessible
Close button in color picker appears when user presses button rightmost arrow button to launch palette panel. This change updates focus from palette panel to close button. This is because earlier user had to press extra tab to reach to control. This change handles close button on ENTER, SPACEBAR and ESC key events. ESC key is for user to escape from the palette panel and return back to earlier state. Earlier, pressing ENTER would close the color picker this change handles it by consuming the event. Gif showing the change https://imgur.com/vt2saeT This change was reviewed earlier here https://chromium-review.googlesource.com/c/chromium/src/+/1687564 has been broken down 1. Make swatches in color palette keyboard accessible https://chromium-review.googlesource.com/c/chromium/src/+/1817344 2. Make swatches screen reader accessible https://chromium-review.googlesource.com/c/chromium/src/+/1816875 3. Make shades of a color palette keyboard accessible https://chromium-review.googlesource.com/c/chromium/src/+/1816873 4. Make close button keyboard accessible https://chromium-review.googlesource.com/c/chromium/src/+/1816874 Bug: 963183 Change-Id: I573e74a0e6adb5130f524f34016760233e14f5ad Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1816874 Commit-Queue: Chandani Shrestha <chshrest@microsoft.com> Reviewed-by:Paul Lewis <aerotwist@chromium.org> Reviewed-by:
John Emau <John.Emau@microsoft.com> Cr-Commit-Position: refs/heads/master@{#706977}
Showing
Please register or sign in to comment