X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a1725c45adde0db77b9c9c93ea03d6b47148807..a949e8fac2666418b2a6eb15e94959563cf8aad6:/src/common/event.cpp diff --git a/src/common/event.cpp b/src/common/event.cpp index d4cc3c54d4..6e578317e2 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -545,9 +545,32 @@ wxKeyEvent::wxKeyEvent(wxEventType type) m_altDown = FALSE; m_keyCode = 0; m_scanCode = 0; +#if wxUSE_UNICODE + m_uniChar = 0; +#endif } - +wxKeyEvent::wxKeyEvent(const wxKeyEvent& evt) + : wxEvent(evt) +{ + m_x = evt.m_x; + m_y = evt.m_y; + + m_keyCode = evt.m_keyCode; + + m_controlDown = evt.m_controlDown; + m_shiftDown = evt.m_shiftDown; + m_altDown = evt.m_altDown; + m_metaDown = evt.m_metaDown; + m_scanCode = evt.m_scanCode; + m_rawCode = evt.m_rawCode; + m_rawFlags = evt.m_rawFlags; + +#if wxUSE_UNICODE + m_uniChar = evt.m_uniChar; +#endif +} + wxWindowCreateEvent::wxWindowCreateEvent(wxWindow *win) { SetEventType(wxEVT_CREATE);