X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bbcdf8bc7ca806d8278c7cb6d09d5590378b67d8..e79848acfe012f03286bc8bc4de1a7694ee6c516:/src/msw/dialog.cpp diff --git a/src/msw/dialog.cpp b/src/msw/dialog.cpp index 4c8cbcbae7..83d0548920 100644 --- a/src/msw/dialog.cpp +++ b/src/msw/dialog.cpp @@ -351,7 +351,12 @@ bool wxDialog::Show(bool show) // a message before the deletion. while (wxModalDialogs.Member(this) && m_modalShowing && GetMessage(&msg, NULL, 0, 0)) { - if (!IsDialogMessage((HWND) GetHWND(), &msg)) + if (m_acceleratorTable.Ok() && + ::TranslateAccelerator((HWND) GetHWND(), (HACCEL) m_acceleratorTable.GetHACCEL(), &msg)) + { + // Have processed the message + } + else if (!IsDialogMessage((HWND) GetHWND(), &msg)) { TranslateMessage(&msg); DispatchMessage(&msg);