Only filter requested events in wxEventBlocker.

Contrary to the documentation, wxEventBlocker always behaved as if the
event type to block was wxEVT_ANY: while it returned false for events
not on the blacklist, it never actually called the existing event
handler as it was meant to.

Fix by calling wxEvtHandler::ProcessEvent() in this case.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2014-08-01 18:03:25 +00:00
parent acba2390e1
commit a49a3585fe

View File

@ -1886,7 +1886,7 @@ bool wxEventBlocker::ProcessEvent(wxEvent& event)
return true; // yes, it should: mark this event as processed
}
return false;
return wxEvtHandler::ProcessEvent(event);;
}
#endif // wxUSE_GUI