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

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: Created 6 years, 10 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 849c802dbf09bd2bfccbf398f44a3a6141fc7478..4c6bc7ab203c644d8721522f860d9950a0fe439b 100644
--- a/Source/devtools/front_end/modules.js
+++ b/Source/devtools/front_end/modules.js
@@ -31,6 +31,65 @@
*/
var allDescriptors = [
{
+ name: "core",
+ extensions: [
+ {
+ type: "@WebInspector.ActionDelegate",
+ bindings: [
pfeldman 2014/02/21 16:29:16 What about mac shortcuts? F5 should do what Cmd+R
apavlov 2014/02/24 09:57:57 Not quite. As per the current code, CtrlOrCmd+R re
pfeldman 2014/03/13 05:24:02 Ctrl+R vs F5 behaving differently is just an overs
apavlov 2014/03/17 13:40:59 Unified the behavior and removed logical expressio
+ {
+ platform: "!mac",
+ shortcut: "F5"
+ },
+ {
+ platform: "!mac",
+ shortcut: "Shift+F5"
+ },
+ {
+ platform: "!mac",
+ shortcut: "Ctrl+F5"
+ }
+ ],
+ className: "WebInspector.ResourceTreeModel.ReloadPageActionDelegate"
+ },
+ {
+ type: "@WebInspector.ActionDelegate",
+ bindings: [
+ {
+ shortcut: "Esc"
+ }
+ ],
+ className: "WebInspector.InspectorView.DrawerToggleActionDelegate"
+ },
+ {
+ type: "@WebInspector.ActionDelegate",
+ bindings: [
+ {
+ shortcut: "Ctrl+`"
+ }
+ ],
+ className: "WebInspector.InspectorView.ShowConsoleActionDelegate"
+ },
+ {
+ type: "@WebInspector.ActionDelegate",
+ bindings: [
+ {
+ shortcut: "CtrlOrMeta+R"
+ }
+ ],
+ className: "WebInspector.SkipAllPausesAndReloadActionDelegate"
+ },
+ {
+ type: "@WebInspector.ActionDelegate",
+ bindings: [
+ {
+ shortcut: "Alt+R"
+ }
+ ],
+ className: "WebInspector.DebugReloadActionDelegate"
+ }
+ ]
+ },
+ {
name: "elements",
extensions: [
{
@@ -141,6 +200,18 @@ var allDescriptors = [
type: "@WebInspector.Revealer",
contextTypes: ["WebInspector.UILocation"],
className: "WebInspector.SourcesPanel.UILocationRevealer"
+ },
+ {
+ type: "@WebInspector.ActionDelegate",
+ bindings: [
+ {
+ shortcut: "CtrlOrMeta+O"
pfeldman 2014/02/21 16:29:16 nonmac:"ctrl+o", mac:"cmd+o"
apavlov 2014/02/24 09:57:57 CtrlOrMeta is a shortcut to this :) Fine with sepa
pfeldman 2014/03/13 05:24:02 It is not clear what this means and it would be ha
apavlov 2014/03/17 13:40:59 Yep, split these into "mac" and "win,linux" config
+ },
+ {
+ shortcut: "CtrlOrMeta+P"
+ },
+ ],
+ className: "WebInspector.SourcesPanel.ShowGoToSourceDialogActionDelegate"
}
],
scripts: [ "SourcesPanel.js" ]
@@ -227,13 +298,30 @@ var allDescriptors = [
]
},
{
+ name: "settings",
+ extensions: [
+ {
+ type: "@WebInspector.ActionDelegate",
+ bindings: [
+ {
+ shortcut: "F1"
+ },
+ {
+ shortcut: "?"
+ }
+ ],
+ className: "WebInspector.SettingsController.SettingsScreenActionDelegate"
+ }
+ ]
+ },
+ {
+ name: "extensions",
extensions: [
{
type: "@WebInspector.ExtensionServerAPI",
className: "WebInspector.ExtensionServer"
}
],
- name: "extensions",
scripts: [ "ExtensionServer.js" ]
},
{
« Source/devtools/front_end/inspector.js ('K') | « Source/devtools/front_end/inspector.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698