git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37179
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxKeyEvent event(wxEVT_CHAR) ;
MacCreateKeyEvent( event, focus , keymessage , modifiers , when , wherex , wherey , uniChar ) ;
long keyval = event.m_keyCode ;
wxKeyEvent event(wxEVT_CHAR) ;
MacCreateKeyEvent( event, focus , keymessage , modifiers , when , wherex , wherey , uniChar ) ;
long keyval = event.m_keyCode ;
- short realkeyval = short(keymessage & charCodeMask) ;
if (tlw)
{
event.SetEventType( wxEVT_CHAR_HOOK );
if (tlw)
{
event.SetEventType( wxEVT_CHAR_HOOK );
- // send original character, not the uppercase version
- event.m_keyCode = realkeyval ;
-
handled = tlw->GetEventHandler()->ProcessEvent( event );
if ( handled && event.GetSkipped() )
handled = false ;
handled = tlw->GetEventHandler()->ProcessEvent( event );
if ( handled && event.GetSkipped() )
handled = false ;
event.m_keyCode = keyval ;
#if wxUSE_UNICODE
event.m_uniChar = uniChar ;
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;
#endif
event.m_rawCode = keymessage;