Revert r250, since CMD-0 for changing to the tenth tab conflicts with the

shortcut for resetting the page zoom, but that is also an established shortcut
from Firefox.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@499 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
stippi 2010-05-16 20:56:35 +00:00 committed by Alexandre Deckner
parent 0e42079313
commit eb44597cd0

View File

@ -470,12 +470,9 @@ BrowserWindow::BrowserWindow(BRect frame, SettingsMessage* appSettings,
AddShortcut('F', B_COMMAND_KEY | B_SHIFT_KEY, new BMessage(EDIT_HIDE_FIND_GROUP));
// Add shortcuts to select a particular tab
for (int32 i = 0; i <= 9; i++) {
for (int32 i = 1; i <= 9; i++) {
BMessage *selectTab = new BMessage(SELECT_TAB);
if (i == 0)
selectTab->AddInt32("tab index", 9);
else
selectTab->AddInt32("tab index", i - 1);
selectTab->AddInt32("tab index", i - 1);
char numStr[2];
snprintf(numStr, sizeof(numStr), "%d", (int) i);
AddShortcut(numStr[0], B_COMMAND_KEY, selectTab);