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:
parent
8470c37812
commit
dd44c9e02c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user