use ProcessEventHere() instead of ProcessEvent() in TryValidator() to avoid passing the unhandled event to wxApp before it can be processed by this window itself
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
bba5e72ad3
commit
92089d00a1
@ -2747,8 +2747,8 @@ bool wxWindowBase::TryValidator(wxEvent& wxVALIDATOR_PARAM(event))
|
||||
// is receiving the event
|
||||
if ( event.GetEventObject() == this )
|
||||
{
|
||||
wxValidator *validator = GetValidator();
|
||||
if ( validator && validator->ProcessEvent(event) )
|
||||
wxValidator * const validator = GetValidator();
|
||||
if ( validator && validator->ProcessEventHere(event) )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user