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

Unified Diff: chrome/browser/global_keyboard_shortcuts_mac.mm

Issue 212009: Hook up cmd-0..8 as "select Nth tab" and cmd-9 as "select last tab".... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/global_keyboard_shortcuts_mac.mm
===================================================================
--- chrome/browser/global_keyboard_shortcuts_mac.mm (revision 26472)
+++ chrome/browser/global_keyboard_shortcuts_mac.mm (working copy)
@@ -15,6 +15,17 @@
{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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698