Summary: | Web Inspector: Styles: start editing property name/value on mouseup instead of mousedown | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Nikita Vasilyev <nvasilyev> | ||||||
Component: | Web Inspector | Assignee: | Nikita Vasilyev <nvasilyev> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | commit-queue, inspector-bugzilla-changes, mattbaker, webkit-bug-importer | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | WebKit Nightly Build | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Bug Depends on: | 190053 | ||||||||
Bug Blocks: | |||||||||
Attachments: |
|
Description
Nikita Vasilyev
2018-09-29 20:00:07 PDT
Created attachment 351425 [details]
Patch
(In reply to Nikita Vasilyev from comment #0) > SpreadsheetTextField, which is used by property names and values, enters > editing mode on focus. Since name & value fields have tabIndex=0, > mousedown on them triggers the focus event. Focusing on an element via the > keyboard (e.g. by pressing Tab key) triggers the focus event as well - great, > we have the same code path for keyboard and mouse navigation! It's > VoiceOver-friendly, too! > > It was all great until now. Focus change always happens on mousedown, which > means I can no longer rely on it for mouse navigation. The current version of the style editor doesn't rely on tabIndex for keyboard navigation between property names and values - it's already a separate code path. Created attachment 351427 [details]
[Animated GIF] With patch applied
Comment on attachment 351425 [details]
Patch
r=me
Comment on attachment 351425 [details] Patch Clearing flags on attachment: 351425 Committed r236780: <https://trac.webkit.org/changeset/236780> All reviewed patches have been landed. Closing bug. |