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

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

Issue 2002803002: DevTools: allow focus to be restored to the drawer when dialog closes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address patch comments Created 4 years, 7 months 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/Drawer.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/Drawer.js b/third_party/WebKit/Source/devtools/front_end/ui/Drawer.js
index d373a9ca449097a7d047d1eed33c909b46991b4f..eef58564134916f11add2704ba958944fa85d628 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/Drawer.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/Drawer.js
@@ -132,6 +132,15 @@ WebInspector.Drawer.prototype = {
},
/**
+ * @override
+ * @return {!Element}
+ */
+ defaultFocusedElement: function()
+ {
+ return this._tabbedPane.defaultFocusedElement();
+ },
+
+ /**
* @return {?string}
*/
selectedViewId: function()

Powered by Google App Engine
This is Rietveld 408576698