X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/06414d99a7a77b1aa1aa9c89e0ed5c466eb5cce8..a4e73390a604cb78d41eacf3e97de48c36aaf8d7:/src/mgl/window.cpp diff --git a/src/mgl/window.cpp b/src/mgl/window.cpp index 2c2fec1ed3..70a9ffaf64 100644 --- a/src/mgl/window.cpp +++ b/src/mgl/window.cpp @@ -704,6 +704,11 @@ void wxWindowMGL::SetFocus() gs_activeFrame->GetEventHandler()->ProcessEvent(event); } + // notify the parent keeping track of focus for the kbd navigation + // purposes that we got it + wxChildFocusEvent eventFocus((wxWindow*)this); + GetEventHandler()->ProcessEvent(eventFocus); + wxFocusEvent event(wxEVT_SET_FOCUS, GetId()); event.SetEventObject(this); event.SetWindow((wxWindow*)oldFocusedWindow);