[haiku-webkit-commits] r499 - webkit/trunk/WebKit/haiku/WebPositive

  • From: webkit@xxxxxxxxxxxxxxx
  • To: haiku-webkit-commits@xxxxxxxxxxxxx
  • Date: Sun, 16 May 2010 20:56:36 +0000

Author: stippi
Date: Sun May 16 20:56:35 2010
New Revision: 499
URL: http://mmlr.dyndns.org/changeset/499

Log:
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.

Modified:
   webkit/trunk/WebKit/haiku/WebPositive/BrowserWindow.cpp

Modified: webkit/trunk/WebKit/haiku/WebPositive/BrowserWindow.cpp
==============================================================================
--- webkit/trunk/WebKit/haiku/WebPositive/BrowserWindow.cpp     Sun May 16 
20:41:50 2010        (r498)
+++ webkit/trunk/WebKit/haiku/WebPositive/BrowserWindow.cpp     Sun May 16 
20:56:35 2010        (r499)
@@ -470,12 +470,9 @@
        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);

Other related posts:

  • » [haiku-webkit-commits] r499 - webkit/trunk/WebKit/haiku/WebPositive - webkit