diff options
author | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-17 21:55:02 +0000 |
---|---|---|
committer | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-17 21:55:02 +0000 |
commit | abfa74e4046808d3075cea4d260c92c05a48e6b7 (patch) | |
tree | eae6a328118de2985ff6cdd0529bcb615cf5c95a | |
parent | f703c4ea89e938b1066d5391c9591ce1e996f913 (diff) | |
download | chromium_src-abfa74e4046808d3075cea4d260c92c05a48e6b7.zip chromium_src-abfa74e4046808d3075cea4d260c92c05a48e6b7.tar.gz chromium_src-abfa74e4046808d3075cea4d260c92c05a48e6b7.tar.bz2 |
Hook up cmd-0..8 as "select Nth tab" and cmd-9 as "select last tab".
BUG=none
TEST=as described.
Review URL: http://codereview.chromium.org/212009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26495 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/global_keyboard_shortcuts_mac.mm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/browser/global_keyboard_shortcuts_mac.mm b/chrome/browser/global_keyboard_shortcuts_mac.mm index 6b7c7fa..ab23695 100644 --- a/chrome/browser/global_keyboard_shortcuts_mac.mm +++ b/chrome/browser/global_keyboard_shortcuts_mac.mm @@ -15,6 +15,17 @@ const KeyboardShortcutData* GetKeyboardShortCutTable(size_t* num_entries) { {true, true, false, 33 /* [ */, IDC_SELECT_PREVIOUS_TAB}, {false, false, true, 116 /* pg_up */, IDC_SELECT_PREVIOUS_TAB}, {false, true, true, 48 /* tab */, IDC_SELECT_PREVIOUS_TAB}, + // Cmd-0..8 select the Nth tab, with cmd-9 being "last tab". Note that the + // vkeys are *not* in natural order. + {true, false, false, 18 /* 1 */, IDC_SELECT_TAB_0}, + {true, false, false, 19 /* 2 */, IDC_SELECT_TAB_1}, + {true, false, false, 20 /* 3 */, IDC_SELECT_TAB_2}, + {true, false, false, 21 /* 4 */, IDC_SELECT_TAB_3}, + {true, false, false, 23 /* 5 */, IDC_SELECT_TAB_4}, + {true, false, false, 22 /* 6 */, IDC_SELECT_TAB_5}, + {true, false, false, 26 /* 7 */, IDC_SELECT_TAB_6}, + {true, false, false, 28 /* 8 */, IDC_SELECT_TAB_7}, + {true, false, false, 25 /* 9 */, IDC_SELECT_LAST_TAB}, }; *num_entries = arraysize(keyboard_shortcuts); |