]> git.saurik.com Git - wxWidgets.git/commitdiff
don't ignore dialog code when processing Ctrl-keys; otherwise text controls and listb...
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 30 Jun 2006 23:27:46 +0000 (23:27 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 30 Jun 2006 23:27:46 +0000 (23:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39917 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index 251187616aeb529af0daad4d84fe81b86efe50ec..f48f1869ed577c9d1bff36a9644ff752adfae9a8 100644 (file)
@@ -2057,18 +2057,14 @@ bool wxWindowMSW::MSWProcessMessage(WXMSG* pMsg)
             // WM_GETDLGCODE: ask the control if it wants the key for itself,
             // don't process it if it's the case (except for Ctrl-Tab/Enter
             // combinations which are always processed)
-            LONG lDlgCode = 0;
-            if ( !bCtrlDown )
-            {
-                lDlgCode = ::SendMessage(msg->hwnd, WM_GETDLGCODE, 0, 0);
+            LONG lDlgCode = ::SendMessage(msg->hwnd, WM_GETDLGCODE, 0, 0);
 
-                // surprizingly, DLGC_WANTALLKEYS bit mask doesn't contain the
-                // DLGC_WANTTAB nor DLGC_WANTARROWS bits although, logically,
-                // it, of course, implies them
-                if ( lDlgCode & DLGC_WANTALLKEYS )
-                {
-                    lDlgCode |= DLGC_WANTTAB | DLGC_WANTARROWS;
-                }
+            // surprizingly, DLGC_WANTALLKEYS bit mask doesn't contain the
+            // DLGC_WANTTAB nor DLGC_WANTARROWS bits although, logically,
+            // it, of course, implies them
+            if ( lDlgCode & DLGC_WANTALLKEYS )
+            {
+                lDlgCode |= DLGC_WANTTAB | DLGC_WANTARROWS;
             }
 
             bool bForward = true,