X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14f355c2b5c71fc7c3d680aea366582d2ac60f7b..83842a0ba326b22c6b930998a7f817e83ff7f7be:/src/common/containr.cpp diff --git a/src/common/containr.cpp b/src/common/containr.cpp index dfb7a123d8..368cee065d 100644 --- a/src/common/containr.cpp +++ b/src/common/containr.cpp @@ -293,6 +293,9 @@ void wxControlContainer::HandleOnNavigationKey( wxNavigationKeyEvent& event ) // and instead give it to the first/last child depending from which // direction we're coming event.SetEventObject(m_winParent); + // disable propagation for this call as otherwise the event might + // bounce back to us. + wxPropagationDisabler disableProp(event); if ( !child->GetEventHandler()->ProcessEvent(event) ) { // set it first in case SetFocusFromKbd() results in focus