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

Unified Diff: third_party/WebKit/Source/devtools/front_end/emulation/AdvancedApp.js

Issue 2574823002: DevTools: do not make main panel unconditionally focused by default. (Closed)
Patch Set: fixed the test Created 4 years 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/emulation/AdvancedApp.js
diff --git a/third_party/WebKit/Source/devtools/front_end/emulation/AdvancedApp.js b/third_party/WebKit/Source/devtools/front_end/emulation/AdvancedApp.js
index 4f4638418ac4623e2e97313b076b693439e0ea0e..24117b8a300bfddb51fea298a90e6b16f4bcbe55 100644
--- a/third_party/WebKit/Source/devtools/front_end/emulation/AdvancedApp.js
+++ b/third_party/WebKit/Source/devtools/front_end/emulation/AdvancedApp.js
@@ -29,8 +29,8 @@ Emulation.AdvancedApp = class {
this._rootSplitWidget = new UI.SplitWidget(false, true, 'InspectorView.splitViewState', 555, 300, true);
this._rootSplitWidget.show(rootView.element);
-
this._rootSplitWidget.setSidebarWidget(UI.inspectorView);
+ this._rootSplitWidget.setDefaultFocusedChild(UI.inspectorView);
UI.inspectorView.setOwnerSplit(this._rootSplitWidget);
this._inspectedPagePlaceholder = new Emulation.InspectedPagePlaceholder();
@@ -48,6 +48,7 @@ Emulation.AdvancedApp = class {
console.timeStamp('AdvancedApp.attachToBody');
rootView.attachToDocument(document);
+ rootView.focus();
this._inspectedPagePlaceholder.update();
}

Powered by Google App Engine
This is Rietveld 408576698