X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e45a6885492304586b481ee1dacdc1544533e731..a45d2855c6882edc830777de2cec9ac21caced61:/src/msw/mdi.cpp diff --git a/src/msw/mdi.cpp b/src/msw/mdi.cpp index bcb1467df6..c61e986fa4 100644 --- a/src/msw/mdi.cpp +++ b/src/msw/mdi.cpp @@ -1165,7 +1165,9 @@ WXLRESULT wxMDIChildFrame::MSWDefWindowProc(WXUINT message, WXWPARAM wParam, WXL bool wxMDIChildFrame::MSWTranslateMessage(WXMSG* msg) { - return wxFrame::MSWTranslateMessage(msg); + // we must pass the parent frame to ::TranslateAccelerator(), otherwise it + // doesn't do its job correctly for MDI child menus + return MSWDoTranslateMessage((wxMDIChildFrame *)GetParent(), msg); } // ---------------------------------------------------------------------------