Summary: | Web Inspector: Styles: Toggle selected properties by pressing Space or Command+/ | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Nikita Vasilyev <nvasilyev> | ||||||||
Component: | Web Inspector | Assignee: | Nikita Vasilyev <nvasilyev> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | bburg, commit-queue, hi, inspector-bugzilla-changes, webkit-bug-importer | ||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||
Version: | WebKit Nightly Build | ||||||||||
Hardware: | All | ||||||||||
OS: | All | ||||||||||
Attachments: |
|
Description
Nikita Vasilyev
2017-12-23 15:27:22 PST
When a property is selected, pressing Space should also toggle it. Created attachment 353582 [details]
Patch
Created attachment 353583 [details]
[Animated GIF] With patch applied
Comment on attachment 353582 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=353582&action=review r=me > Source/WebInspectorUI/ChangeLog:25 > + Make `update` method public. No other chanches were made. Nit: changes Comment on attachment 353582 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=353582&action=review > Source/WebInspectorUI/UserInterface/Views/SpreadsheetCSSStyleDeclarationEditor.js:240 > + get selectionRange() Nice! > Source/WebInspectorUI/UserInterface/Views/SpreadsheetCSSStyleDeclarationEditor.js:535 > + } else if (event.code === "Space" || (event.key === "/" && event.metaKey)) { Do we wan't to prevent other "special" keys as well (e.g. not while holding shift). Created attachment 353622 [details]
Patch
Comment on attachment 353622 [details] Patch Clearing flags on attachment: 353622 Committed r237692: <https://trac.webkit.org/changeset/237692> All reviewed patches have been landed. Closing bug. |