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

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

Issue 170273003: DevTools: Implement extensions-based shortcut bindings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 9 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/SourcesPanel.js ('k') | Source/devtools/scripts/frontend_modules.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/modules.js
diff --git a/Source/devtools/front_end/modules.js b/Source/devtools/front_end/modules.js
index a250fc5e745f092dc4d5b0d9e91c02717a5d3b18..0e2f024990c5aeeef42601316ca2908558cb2c9a 100644
--- a/Source/devtools/front_end/modules.js
+++ b/Source/devtools/front_end/modules.js
@@ -31,6 +31,57 @@
*/
var allDescriptors = [
{
+ name: "main",
+ extensions: [
+ {
+ type: "@WebInspector.ActionDelegate",
+ bindings: [
+ {
+ platform: "win,linux",
+ shortcut: "F5 Ctrl+R"
+ },
+ {
+ platform: "mac",
+ shortcut: "Meta+R"
+ }
+ ],
+ className: "WebInspector.Main.ReloadActionDelegate"
+ },
+ {
+ type: "@WebInspector.ActionDelegate",
+ bindings: [
+ {
+ platform: "win,linux",
+ shortcut: "Shift+F5 Ctrl+F5 Ctrl+Shift+F5 Shift+Ctrl+R"
+ },
+ {
+ platform: "mac",
+ shortcut: "Shift+Meta+R"
+ }
+ ],
+ className: "WebInspector.Main.HardReloadActionDelegate"
+ },
+ {
+ type: "@WebInspector.ActionDelegate",
+ bindings: [
+ {
+ shortcut: "Esc"
+ }
+ ],
+ className: "WebInspector.InspectorView.DrawerToggleActionDelegate"
+ },
+ {
+ type: "@WebInspector.ActionDelegate",
+ bindings: [
+ {
+ shortcut: "Alt+R"
+ }
+ ],
+ className: "WebInspector.Main.DebugReloadActionDelegate"
+ }
+ ]
+ },
+ {
name: "elements",
extensions: [
{
@@ -172,6 +223,20 @@ var allDescriptors = [
title: "Snippets",
order: 3,
className: "WebInspector.SnippetsNavigatorView"
+ },
+ {
+ type: "@WebInspector.ActionDelegate",
+ bindings: [
+ {
+ platform: "mac",
+ shortcut: "Meta+O Meta+P"
+ },
+ {
+ platform: "win,linux",
+ shortcut: "Ctrl+O Ctrl+P"
+ }
+ ],
+ className: "WebInspector.SourcesPanel.ShowGoToSourceDialogActionDelegate"
}
],
scripts: [ "SourcesPanel.js" ]
@@ -259,18 +324,41 @@ var allDescriptors = [
type: "@WebInspector.Revealer",
contextTypes: ["WebInspector.ConsoleModel"],
className: "WebInspector.ConsolePanel.ConsoleRevealer"
+ },
+ {
+ type: "@WebInspector.ActionDelegate",
+ bindings: [
+ {
+ shortcut: "Ctrl+`"
+ }
+ ],
+ className: "WebInspector.ConsoleView.ShowConsoleActionDelegate"
}
],
scripts: [ "ConsolePanel.js" ]
},
{
+ name: "settings",
+ extensions: [
+ {
+ type: "@WebInspector.ActionDelegate",
+ bindings: [
+ {
+ shortcut: "F1 Shift+?"
+ }
+ ],
+ className: "WebInspector.SettingsController.SettingsScreenActionDelegate"
+ }
+ ]
+ },
+ {
+ name: "extensions",
extensions: [
{
type: "@WebInspector.ExtensionServerAPI",
className: "WebInspector.ExtensionServer"
}
],
- name: "extensions",
scripts: [ "ExtensionServer.js" ]
},
{
« no previous file with comments | « Source/devtools/front_end/SourcesPanel.js ('k') | Source/devtools/scripts/frontend_modules.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698