Accelerators now work for wxDialog; wxToolBarSimple fixed when dragging out of
the toolbar git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user