Index: Source/devtools/front_end/Main.js |
diff --git a/Source/devtools/front_end/Main.js b/Source/devtools/front_end/Main.js |
index fcfa7d22d3f67e498a480a33c515aa0594b5ec87..704c514e7e809500373a8f8aca76e6018c06706c 100644 |
--- a/Source/devtools/front_end/Main.js |
+++ b/Source/devtools/front_end/Main.js |
@@ -736,6 +736,29 @@ WebInspector.Main.DebugReloadActionDelegate.prototype = { |
} |
} |
+/** |
+ * @constructor |
+ * @extends {WebInspector.UISettingDelegate} |
+ */ |
+WebInspector.Main.ShortcutPanelSwitchSettingDelegate = function() |
+{ |
+ WebInspector.UISettingDelegate.call(this); |
+} |
+ |
+WebInspector.Main.ShortcutPanelSwitchSettingDelegate.prototype = { |
+ /** |
+ * @override |
+ * @return {!Element} |
+ */ |
+ settingElement: function() |
+ { |
+ var modifier = WebInspector.platform() === "mac" ? "Cmd" : "Ctrl"; |
+ return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIString("Enable %s + 1-9 shortcut to switch panels", modifier), WebInspector.settings.shortcutPanelSwitch); |
+ }, |
+ |
+ __proto__: WebInspector.UISettingDelegate.prototype |
+} |
+ |
new WebInspector.Main(); |
window.DEBUG = true; |