Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/CSSShadowEditor.js

Issue 2514353006: DevTools: all swatches get default focused element (reland with fix) (Closed)
Patch Set: DevTools: all swatches get default focused element (reland with fix) Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/ui/CSSShadowEditor.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/CSSShadowEditor.js b/third_party/WebKit/Source/devtools/front_end/ui/CSSShadowEditor.js
index 745dcf602e8324a4e5a0168feeb7e29e56828db6..181ee668bb03885cd9e56d4fc5dc61d8499c01d8 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/CSSShadowEditor.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/CSSShadowEditor.js
@@ -9,6 +9,7 @@ UI.CSSShadowEditor = class extends UI.VBox {
super(true);
this.registerRequiredCSS('ui/cssShadowEditor.css');
this.contentElement.tabIndex = 0;
+ this.setDefaultFocusedElement(this.contentElement);
this._typeField = this.contentElement.createChild('div', 'shadow-editor-field');
this._typeField.createChild('label', 'shadow-editor-label').textContent = Common.UIString('Type');

Powered by Google App Engine
This is Rietveld 408576698