summaryrefslogtreecommitdiffstats
path: root/chrome/browser/global_keyboard_shortcuts_mac.mm
diff options
context:
space:
mode:
authorapavlov@chromium.org <apavlov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-16 11:58:48 +0000
committerapavlov@chromium.org <apavlov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-16 11:58:48 +0000
commit2a8a98126b0115e0f3d137668c67b90a399f72bf (patch)
treeac1eedcdf0439b6c867cdce638d8a512d7cabaee /chrome/browser/global_keyboard_shortcuts_mac.mm
parent8664dfb1f41cb9c51e50b3f7c4d78b24d29408d8 (diff)
downloadchromium_src-2a8a98126b0115e0f3d137668c67b90a399f72bf.zip
chromium_src-2a8a98126b0115e0f3d137668c67b90a399f72bf.tar.gz
chromium_src-2a8a98126b0115e0f3d137668c67b90a399f72bf.tar.bz2
Add "Inspect Element" shortcut to browser tabs.
If the DevTools window is closed, it gets opened, and the Inspect Element tool is enabled. If the DevTools window is opened, the inspected tab remains focused with the Inspect Element tool enabled. If the Inspect Element tool is enabled, it gets turned off. The shortcut is Ctrl-Shift-C for Win/Linux, Cmd-Shift-C for Mac BUG=29532 TEST=manual Review URL: http://codereview.chromium.org/3011002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52651 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/global_keyboard_shortcuts_mac.mm')
-rw-r--r--chrome/browser/global_keyboard_shortcuts_mac.mm9
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/browser/global_keyboard_shortcuts_mac.mm b/chrome/browser/global_keyboard_shortcuts_mac.mm
index f40e91c..38b5636 100644
--- a/chrome/browser/global_keyboard_shortcuts_mac.mm
+++ b/chrome/browser/global_keyboard_shortcuts_mac.mm
@@ -61,10 +61,11 @@ const KeyboardShortcutData* GetDelayedWindowKeyboardShortcutTable
const KeyboardShortcutData* GetBrowserKeyboardShortcutTable
(size_t* num_entries) {
static const KeyboardShortcutData keyboard_shortcuts[] = {
- {true, false, false, false, kVK_LeftArrow, 0, IDC_BACK},
- {true, false, false, false, kVK_RightArrow, 0, IDC_FORWARD},
- {false, false, false, false, kVK_Delete, 0, IDC_BACK},
- {false, true, false, false, kVK_Delete, 0, IDC_FORWARD},
+ {true, false, false, false, kVK_LeftArrow, 0, IDC_BACK},
+ {true, false, false, false, kVK_RightArrow, 0, IDC_FORWARD},
+ {false, false, false, false, kVK_Delete, 0, IDC_BACK},
+ {false, true, false, false, kVK_Delete, 0, IDC_FORWARD},
+ {true, true, false, false, 0, 'c', IDC_DEV_TOOLS_INSPECT},
};
*num_entries = arraysize(keyboard_shortcuts);