]> git.saurik.com Git - wxWidgets.git/commitdiff
fix handling Alt-key events in wxComboBox
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 24 Mar 2005 22:29:30 +0000 (22:29 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 24 Mar 2005 22:29:30 +0000 (22:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/changes.txt
src/msw/combobox.cpp

index d95e0d2d40c59d8857f1d5dd567d5c04b7d3c47e..0f4e4b913c069fe35f111c89e9aec78feeee600d 100644 (file)
@@ -34,6 +34,7 @@ wxMSW:
 
 - Added "orient" parameter to wxMDIParentFrame::Tile()
 - wxTextCtrl with wxTE_RICH2 style now uses RichEdit 4.1 if available
+- fix handling Alt-key events in wxComboBox (reported by Joakim Roubert)
 
 wxGTK:
 
index 1fd9e0daa577645fcc8d67055ba21c7a62098f72..c15da2ee31ba9e918c050c277e1374e262c972c8 100644 (file)
@@ -174,6 +174,9 @@ LRESULT APIENTRY _EXPORT wxComboEditWndProc(HWND hWnd,
         case WM_KEYUP:
         case WM_KEYDOWN:
         case WM_CHAR:
+        case WM_SYSCHAR:
+        case WM_SYSKEYDOWN:
+        case WM_SYSKEYUP:
         case WM_SETFOCUS:
         case WM_KILLFOCUS:
             {
@@ -299,12 +302,16 @@ bool wxComboBox::MSWProcessEditMsg(WXUINT msg, WXWPARAM wParam, WXLPARAM lParam)
                     return true;
                 }
             }
+            // fall through
 
+        case WM_SYSCHAR:
             return HandleChar(wParam, lParam, true /* isASCII */);
 
+        case WM_SYSKEYDOWN:
         case WM_KEYDOWN:
             return HandleKeyDown(wParam, lParam);
 
+        case WM_SYSKEYUP:
         case WM_KEYUP:
             return HandleKeyUp(wParam, lParam);