X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e702ff0f08a54622a6b0f1e2ec39537b082c3a8e..4f84c635dc03a42048661e5fe89d1a0c0e047408:/src/stubs/frame.cpp diff --git a/src/stubs/frame.cpp b/src/stubs/frame.cpp index 48ff977bda..0a15c650af 100644 --- a/src/stubs/frame.cpp +++ b/src/stubs/frame.cpp @@ -451,11 +451,7 @@ void wxFrame::ProcessCommand(int id) } */ - // Process events starting with the window with the focus, if any. - wxWindow* focusWin = wxFindFocusDescendant(this); - - wxEvtHandler* evtHandler = focusWin ? focusWin->GetEventHandler() : GetEventHandler(); - + wxEvtHandler* evtHandler = GetEventHandler(); evtHandler->ProcessEvent(commandEvent); }