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

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: ac 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/ui/Popover.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
var document = this._popover.element.ownerDocument;
document.addEventListener('mousedown', this._hideProxy, false);
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/ui/Popover.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698