]> git.saurik.com Git - wxWidgets.git/commitdiff
[ 1523907 ] Remove unnecessary wxComboCtrl window style.
authorWłodzimierz Skiba <abx@abx.art.pl>
Thu, 20 Jul 2006 15:31:10 +0000 (15:31 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Thu, 20 Jul 2006 15:31:10 +0000 (15:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40209 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/comboctrl.tex
include/wx/combo.h
src/common/combocmn.cpp

index 1506f07e2eb1cbcf2e730189db0975662020355a..15f46315488cc02fc1fc8a3812045ea7a2e20d38 100644 (file)
@@ -145,9 +145,6 @@ dialog controls). Windows only.}
 to popup's OnComboDoubleClick. Actual behaviour is defined by a derived
 class. For instance, wxOwnerDrawnComboBox will cycle an item. This style only
 applies if wxCB\_READONLY is used as well.}
-\twocolitem{\windowstyle{wxCC\_ALT\_KEYS}}{Use keyboard behaviour alternate
-to platform default: up and down keys will show popup (instead of cycling value,
-for instance, on wxMSW).}
 \twocolitem{\windowstyle{wxCC\_STD\_BUTTON}}{Drop button will behave
 more like a standard push button.}
 \end{twocollist}
index 2c7b1b7faf0860525bee925a72d7aa67c19d5ae7..36d9a720e2c4ad403bc8d9bc8923e7da5ad6318d 100644 (file)
@@ -58,12 +58,8 @@ enum
     // In wxOwnerDrawnComboBox, for instance, it cycles item.
     wxCC_SPECIAL_DCLICK             = 0x0100,
 
-    // Use keyboard behaviour alternate to platform default:
-    // Up an down keys will show popup instead of cycling value.
-    wxCC_ALT_KEYS                   = 0x0200,
-
     // Dropbutton acts like standard push button.
-    wxCC_STD_BUTTON                 = 0x0400
+    wxCC_STD_BUTTON                 = 0x0200
 };
 
 
index 07ab83c061ac6705e47f1c58417431a0e198a252..b9792d8df82ce6f08038eb2aac335ff184e0af75 100644 (file)
@@ -492,19 +492,7 @@ void wxComboBoxExtraInputHandler::OnKey(wxKeyEvent& event)
              ( keycode != WXK_RIGHT && keycode != WXK_LEFT )
             )
         {
-            // Alternate keys: UP and DOWN show the popup instead of cycling
-            if ( (comboStyle & wxCC_ALT_KEYS) )
-            {
-                if ( keycode == WXK_UP || keycode == WXK_DOWN )
-                {
-                    m_combo->OnButtonClick();
-                    return;
-                }
-                else
-                    event.Skip();
-            }
-            else
-                popupInterface->OnComboKeyEvent(event);
+            popupInterface->OnComboKeyEvent(event);
         }
         else
             event.Skip();