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

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

Issue 2319523004: DevTools: Remember the last focused widget. (Closed)
Patch Set: Created 4 years, 3 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/TabbedPane.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js b/third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js
index 6ae72638a847c6cbb7c83f58bfaf0805b213fd3d..9dfcfdd74806c486ef0e8e9f57ecaafc950fa3d3 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js
@@ -145,10 +145,12 @@ WebInspector.TabbedPane.prototype = {
focus: function()
{
- if (this.visibleView)
+ if (this.visibleView) {
this.visibleView.focus();
- else
+ } else {
this.contentElement.focus();
+ this.wasFocused();
+ }
},
/**

Powered by Google App Engine
This is Rietveld 408576698