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

Unified Diff: third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.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/elements/ElementsPanel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js b/third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js
index aba62ef03cfbd78777b7ebd6673073a16c8b7271..f3d61763a8d1c36a9d6c703eb0d12959b6fdeb58 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js
@@ -256,8 +256,10 @@ WebInspector.ElementsPanel.prototype = {
*/
focus: function()
{
- if (this._treeOutlines.length)
+ if (this._treeOutlines.length) {
this._treeOutlines[0].focus();
+ this.wasFocused();
+ }
},
/**

Powered by Google App Engine
This is Rietveld 408576698