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

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

Issue 2510883002: DevTools: all swatches should have a default focused element (Closed)
Patch Set: a 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/SwatchPopoverHelper.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/SwatchPopoverHelper.js b/third_party/WebKit/Source/devtools/front_end/ui/SwatchPopoverHelper.js
index 9ce5442eea3656ab7a3bf57397c7b25de71829bd..97549c01979f31f3a5e8fd1bfe6ba62b1c1ebc26 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/SwatchPopoverHelper.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/SwatchPopoverHelper.js
@@ -53,6 +53,7 @@ UI.SwatchPopoverHelper = class extends Common.Object {
this._view = view;
this._hiddenCallback = hiddenCallback;
this.reposition();
+ view.focus();
dgozman 2016/11/17 01:29:50 Shouldn't call to popover.showView handle this?
luoe 2016/11/17 21:38:08 I don't think so. Not all popovers need to take f
var document = this._popover.element.ownerDocument;
document.addEventListener('mousedown', this._hideProxy, false);

Powered by Google App Engine
This is Rietveld 408576698