do not assign uniChar to wxKeyEvent::m_keyCode for EVT_CHAR events; this breaks any code handling things like arrow keys as it gets absolutely useless kDownArrowCharCode instead of WXK_DOWN for example

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2006-03-18 17:14:55 +00:00
parent 8470c37812
commit dd44c9e02c

View File

@ -1670,8 +1670,6 @@ void wxApp::MacCreateKeyEvent( wxKeyEvent& event, wxWindow* focus , long keymess
event.m_keyCode = keyval ;
#if wxUSE_UNICODE
event.m_uniChar = uniChar ;
if ( event.GetEventType() == wxEVT_CHAR )
event.m_keyCode = uniChar ;
#endif
event.m_rawCode = keymessage;