diff --git a/src/common/event.cpp b/src/common/event.cpp index c4f1ae8164..1cc349614d 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -1447,8 +1447,11 @@ bool wxEvtHandler::DoTryChain(wxEvent& event) // for it by not processing the event further because this was already // done by that rogue event handler. wxEventProcessInHandlerOnly processInHandlerOnly(event, h); - if ( h->ProcessEvent(event) || !event.ShouldProcessOnlyIn(h) ) + if ( h->ProcessEvent(event) ) return true; + + if ( !event.ShouldProcessOnlyIn(h) ) + break; } return false;