| Index: Source/WebCore/inspector/front-end/inspector.js
|
| ===================================================================
|
| --- Source/WebCore/inspector/front-end/inspector.js (revision 135261)
|
| +++ Source/WebCore/inspector/front-end/inspector.js (working copy)
|
| @@ -377,10 +377,11 @@
|
|
|
| WebInspector._doLoadedDoneWithCapabilities = function()
|
| {
|
| - WebInspector.shortcutsScreen = new WebInspector.ShortcutsScreen();
|
| - this._registerShortcuts();
|
| + var panelDescriptors = this._panelDescriptors();
|
| + WebInspector.shortcutsScreen = new WebInspector.ShortcutsScreen(this._registerShortcuts.bind(this, panelDescriptors));
|
|
|
| // set order of some sections explicitly
|
| + WebInspector.shortcutsScreen.section(WebInspector.UIString("All Panels"));
|
| WebInspector.shortcutsScreen.section(WebInspector.UIString("Console"));
|
| WebInspector.shortcutsScreen.section(WebInspector.UIString("Elements Panel"));
|
|
|
| @@ -445,7 +446,6 @@
|
|
|
| this.toolbar = new WebInspector.Toolbar();
|
| WebInspector.startBatchUpdate();
|
| - var panelDescriptors = this._panelDescriptors();
|
| for (var i = 0; i < panelDescriptors.length; ++i)
|
| WebInspector.inspectorView.addPanel(panelDescriptors[i]);
|
| WebInspector.endBatchUpdate();
|
| @@ -613,7 +613,7 @@
|
| InspectorFrontendHost.openInNewTab(resourceURL);
|
| }
|
|
|
| -WebInspector._registerShortcuts = function()
|
| +WebInspector._registerShortcuts = function(panelDescriptors)
|
| {
|
| var shortcut = WebInspector.KeyboardShortcut;
|
| var section = WebInspector.shortcutsScreen.section(WebInspector.UIString("All Panels"));
|
| @@ -648,6 +648,9 @@
|
|
|
| var goToShortcut = WebInspector.GoToLineDialog.createShortcut();
|
| section.addKey(goToShortcut.name, WebInspector.UIString("Go to line"));
|
| +
|
| + for (var i = 0; i < panelDescriptors.length; ++i)
|
| + panelDescriptors[i].panel();
|
| }
|
|
|
| WebInspector.documentKeyDown = function(event)
|
|
|