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

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 patch 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
Index: Source/devtools/front_end/modules.js
diff --git a/Source/devtools/front_end/modules.js b/Source/devtools/front_end/modules.js
index 9764f5aeda8bddc76d7a3eda3c6fb5a5b3d6375c..f9904025c620aca8e2dca7fabbde7b270ca7615c 100644
--- a/Source/devtools/front_end/modules.js
+++ b/Source/devtools/front_end/modules.js
@@ -31,6 +31,73 @@
*/
var allDescriptors = [
{
+ name: "core",
+ extensions: [
+ {
+ type: "@WebInspector.ActionDelegate",
+ bindings: [
+ {
+ platform: "win,linux",
+ shortcut: "F5"
pfeldman 2014/03/24 16:54:22 Space-separated?
apavlov 2014/03/25 10:03:45 Done.
+ },
+ {
+ platform: "win,linux",
+ shortcut: "Ctrl+R"
+ },
+ {
+ platform: "mac",
+ shortcut: "Meta+R"
+ }
+ ],
+ className: "WebInspector.Main.SkipAllPausesAndReloadActionDelegate"
+ },
+ {
+ type: "@WebInspector.ActionDelegate",
+ bindings: [
+ {
+ platform: "win,linux",
+ shortcut: "Shift+F5"
+ },
+ {
+ platform: "win,linux",
+ shortcut: "Ctrl+F5"
+ },
+ {
+ platform: "win,linux",
+ shortcut: "Ctrl+Shift+F5"
+ },
+ {
+ platform: "win,linux",
+ shortcut: "Shift+Ctrl+R"
+ },
+ {
+ platform: "mac",
+ shortcut: "Shift+Meta+R"
+ }
+ ],
+ className: "WebInspector.Main.SkipAllPausesAndHardReloadActionDelegate"
pfeldman 2014/03/24 16:54:22 WebInspector.Main.HardReloadActionDelegate
apavlov 2014/03/25 10:03:45 Done.
+ },
+ {
+ 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 +239,28 @@ var allDescriptors = [
title: "Snippets",
order: 3,
className: "WebInspector.SnippetsNavigatorView"
+ },
+ {
+ type: "@WebInspector.ActionDelegate",
+ bindings: [
+ {
+ platform: "mac",
+ shortcut: "Meta+O"
+ },
+ {
+ platform: "mac",
+ shortcut: "Meta+P"
+ },
+ {
+ platform: "win,linux",
+ shortcut: "Ctrl+O"
+ },
+ {
+ platform: "win,linux",
+ shortcut: "Ctrl+P"
+ }
+ ],
+ className: "WebInspector.SourcesPanel.ShowGoToSourceDialogActionDelegate"
}
],
scripts: [ "SourcesPanel.js" ]
@@ -259,18 +348,44 @@ var allDescriptors = [
type: "@WebInspector.Revealer",
contextTypes: ["WebInspector.ConsoleModel"],
className: "WebInspector.ConsolePanel.ConsoleRevealer"
+ },
+ {
+ type: "@WebInspector.ActionDelegate",
+ bindings: [
+ {
+ shortcut: "Ctrl+`"
+ }
+ ],
+ className: "WebInspector.ConsoleModel.ShowConsoleActionDelegate"
}
],
scripts: [ "ConsolePanel.js" ]
},
{
+ name: "settings",
+ extensions: [
+ {
+ type: "@WebInspector.ActionDelegate",
+ bindings: [
+ {
+ shortcut: "F1"
+ },
+ {
+ shortcut: "Shift+?"
+ }
+ ],
+ className: "WebInspector.SettingsController.SettingsScreenActionDelegate"
+ }
+ ]
+ },
+ {
+ name: "extensions",
extensions: [
{
type: "@WebInspector.ExtensionServerAPI",
className: "WebInspector.ExtensionServer"
}
],
- name: "extensions",
scripts: [ "ExtensionServer.js" ]
},
{
« Source/devtools/front_end/SourcesPanel.js ('K') | « Source/devtools/front_end/SourcesPanel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698