Make wxEVT_CHAR_HOOK propagate upwards and send it to the window itself.
Send wxEVT_CHAR_HOOK events to the focused window itself but make them propagatable to ensure that the parent windows (including the top level parent) still get it. This still allows the TLW parent to intercept keyboard handling in its child but allows the child (or an intermediate parent window) to have some say in the matter. See #9102. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1744,6 +1744,14 @@ public:
|
||||
wxUint32 m_rawFlags;
|
||||
|
||||
private:
|
||||
// Set the event to propagate if necessary, i.e. if it's of wxEVT_CHAR_HOOK
|
||||
// type. This is used by all ctors.
|
||||
void InitPropagation()
|
||||
{
|
||||
if ( m_eventType == wxEVT_CHAR_HOOK )
|
||||
m_propagationLevel = wxEVENT_PROPAGATE_MAX;
|
||||
}
|
||||
|
||||
// Copy only the event data present in this class, this is used by
|
||||
// AssignKeyData() and copy ctor.
|
||||
void DoAssignMembers(const wxKeyEvent& evt)
|
||||
|
Reference in New Issue
Block a user