X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f5851311d3cafff78097f8441d3dc5bf1fc1e6b0..ccd5d46c7b69632eaa231e8fc7801dd5af2faaa8:/src/msw/accel.cpp diff --git a/src/msw/accel.cpp b/src/msw/accel.cpp index 2504eeafac..6cf188e3fd 100644 --- a/src/msw/accel.cpp +++ b/src/msw/accel.cpp @@ -152,13 +152,6 @@ WXHACCEL wxAcceleratorTable::GetHACCEL() const bool wxAcceleratorTable::Translate(wxWindow *window, WXMSG *wxmsg) const { -#if 0 - // calling TranslateAccelerator() with child window doesn't do anything so - // it's probably a bug - wxASSERT_MSG( window->IsTopLevel(), - _T("TranslateAccelerator() needs a top level window") ); -#endif - MSG *msg = (MSG *)wxmsg; return Ok() && ::TranslateAccelerator(GetHwndOf(window), GetHaccel(), msg); }