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

Unified Diff: Source/devtools/front_end/InspectorView.js

Issue 218613013: DevTools: Decouple shortcuts from actions, introduce shortcut contexts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased patch Created 6 years, 8 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
« no previous file with comments | « Source/devtools/front_end/Drawer.js ('k') | Source/devtools/front_end/KeyboardShortcut.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/InspectorView.js
diff --git a/Source/devtools/front_end/InspectorView.js b/Source/devtools/front_end/InspectorView.js
index f9abed168acb1d5dfae1fcb07ef3adcfd1b08c5f..68adb270f77e350905f624c907c8203abaa75c12 100644
--- a/Source/devtools/front_end/InspectorView.js
+++ b/Source/devtools/front_end/InspectorView.js
@@ -196,6 +196,8 @@ WebInspector.InspectorView.prototype = {
_tabSelected: function()
{
var panelName = this._tabbedPane.selectedTabId;
+ if (!panelName)
+ return;
var panel = this._panelDescriptors[this._tabbedPane.selectedTabId].panel();
this._tabbedPane.changeTabView(panelName, panel);
@@ -259,7 +261,7 @@ WebInspector.InspectorView.prototype = {
},
/**
- * @return {string}
+ * @return {?string}
*/
selectedViewInDrawer: function()
{
« no previous file with comments | « Source/devtools/front_end/Drawer.js ('k') | Source/devtools/front_end/KeyboardShortcut.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698