Chromium Code Reviews
DescriptionDevTools: all swatches should have a default focused element
Color swatches correctly respond to 'Enter' and 'Esc' because Spectrum calls
focus() whenever it loads. Bezier and shadow editors did not. This CL makes
bezier and shadow editors set a default focused element. SwatchPopoverHelper now
calls focus() after showing a view, instead of requiring each swatch-popover
implementation call focus.
One peculiarity with color swatches is they may hide and show themselves after
loading a palette. To keep focus on the popover, focus restoring logic was added
to the SwatchPopoverHelper whenever hiding an old popover.
BUG=665801
Committed: https://crrev.com/0384ce04d25ba97446b20e7ca2d423cec10c2ffd
Cr-Commit-Position: refs/heads/master@{#433382}
Patch Set 1 #Patch Set 2 : a #Patch Set 3 : a #
Total comments: 4
Patch Set 4 : ac #
Messages
Total messages: 23 (14 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||