Commit 72dd6d19 authored by samli@chromium.org's avatar samli@chromium.org

Devtools UI: Fix Chrome focus shortcut and add pause debugger shortcut

This change reverts adding Cmd+L clear console shortcut, as it conflicts
with Chrome's omnibox focus shortcut on Mac.

This change also allows the pause script shortcuts to be used while
inside the inspected page, allowing the user to perform a series of
mouse/focus actions before pausing script.

BUG=527220

Review URL: https://codereview.chromium.org/1312393004

git-svn-id: svn://svn.chromium.org/blink/trunk@201672 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 9d2764ea
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
}, },
{ {
"platform": "mac", "platform": "mac",
"shortcut": "Ctrl+L Meta+L" "shortcut": "Ctrl+L Meta+K"
} }
] ]
}, },
......
...@@ -351,7 +351,7 @@ WebInspector.Main.prototype = { ...@@ -351,7 +351,7 @@ WebInspector.Main.prototype = {
_registerForwardedShortcuts: function() _registerForwardedShortcuts: function()
{ {
/** @const */ var forwardedActions = ["main.reload", "main.hard-reload", "main.toggle-dock", "debugger.toggle-breakpoints-active"]; /** @const */ var forwardedActions = ["main.reload", "main.hard-reload", "main.toggle-dock", "debugger.toggle-breakpoints-active", "debugger.toggle-pause"];
var actionKeys = WebInspector.shortcutRegistry.keysForActions(forwardedActions).map(WebInspector.KeyboardShortcut.keyCodeAndModifiersFromKey); var actionKeys = WebInspector.shortcutRegistry.keysForActions(forwardedActions).map(WebInspector.KeyboardShortcut.keyCodeAndModifiersFromKey);
actionKeys.push({keyCode: WebInspector.KeyboardShortcut.Keys.F8.code}); actionKeys.push({keyCode: WebInspector.KeyboardShortcut.Keys.F8.code});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment