]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/window.cpp
Added wxGCDC(wxEnhMetaFileDC) ctor too.
[wxWidgets.git] / src / msw / window.cpp
index cd72c3c1e6142973e44af94d5e824619d820ba8f..eee4ca18ad676b821db3820fea3c8ac4704eb122 100644 (file)
@@ -2403,8 +2403,6 @@ bool wxWindowMSW::MSWProcessMessage(WXMSG* pMsg)
                                 // emulate the button click
                                 btn = wxFindWinFromHandle(msg->hwnd);
                             }
-
-                            bProcess = false;
                         }
                         else // not a button itself, do we have default button?
                         {
@@ -2464,6 +2462,13 @@ bool wxWindowMSW::MSWProcessMessage(WXMSG* pMsg)
                             return true;
                         }
 
+                        // This "Return" key press won't be actually used for
+                        // navigation so don't generate wxNavigationKeyEvent
+                        // for it but still pass it to IsDialogMessage() as it
+                        // may handle it in some other way (e.g. by playing the
+                        // default error sound).
+                        bProcess = false;
+
 #endif // wxUSE_BUTTON
 
 #ifdef __WXWINCE__