X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8270459a11dc56bf15ef44ee0c64f82e33507503..d86b82bb2c905bdcd7fe0f95c1279d7050df5494:/src/common/event.cpp diff --git a/src/common/event.cpp b/src/common/event.cpp index 31223d417e..ce1e145c79 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -735,22 +735,28 @@ wxKeyEvent::wxKeyEvent(wxEventType type) #if wxUSE_UNICODE m_uniChar = WXK_NONE; #endif + + InitPropagation(); } wxKeyEvent::wxKeyEvent(const wxKeyEvent& evt) : wxEvent(evt), wxKeyboardState(evt) { - m_x = evt.m_x; - m_y = evt.m_y; + DoAssignMembers(evt); - m_keyCode = evt.m_keyCode; - m_rawCode = evt.m_rawCode; - m_rawFlags = evt.m_rawFlags; + InitPropagation(); +} -#if wxUSE_UNICODE - m_uniChar = evt.m_uniChar; -#endif +wxKeyEvent::wxKeyEvent(wxEventType eventType, const wxKeyEvent& evt) + : wxEvent(evt), + wxKeyboardState(evt) +{ + DoAssignMembers(evt); + + m_eventType = eventType; + + InitPropagation(); } bool wxKeyEvent::IsKeyInCategory(int category) const