]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/window.cpp
Ignore Windows key
[wxWidgets.git] / src / msw / window.cpp
index 4dff286ca23b6e3002ed859ba829b420399bcd02..00465394809251ea48d2cd48bbbf5cefab636f4c 100644 (file)
@@ -2864,12 +2864,12 @@ WXLRESULT wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM l
 #endif // defined(WM_DRAWITEM)
 
         case WM_GETDLGCODE:
-            if ( !IsOfStandardClass() )
+            if ( !IsOfStandardClass() || HasFlag(wxWANTS_CHARS) )
             {
                 // we always want to get the char events
                 rc.result = DLGC_WANTCHARS;
 
-                if ( GetWindowStyleFlag() & wxWANTS_CHARS )
+                if ( HasFlag(wxWANTS_CHARS) )
                 {
                     // in fact, we want everything
                     rc.result |= DLGC_WANTARROWS |