DevTools: Make add button in color-picker accessible
Earlier, when user pressed Enter when focus was in Add button it used to close color-picker because keydown event used to get bubbled up to inline_editor_module.js which was hiding the element. This inline_editor_module hides the suggested list of items when user presses enter in one of them. This change adds keydown handler in UI.Toolbar which consumes the keydown event similar to click handler in it which prevents hiding up color-picker when user presses enter. Also, this change gives focus to recently added item when add button is clicked which has a lightblue border color. Gif showing this change: https://imgur.com/2aaF4Y2 Bug: 963183 Change-Id: Ia4594adbb802fdf2fada7ebf62be9a8d1c148f1e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1688337Reviewed-by:Lorne Mitchell <lomitch@microsoft.com> Commit-Queue: Chandani Shrestha <chshrest@microsoft.com> Cr-Commit-Position: refs/heads/master@{#704841}
Showing
Please register or sign in to comment