wxKeyEvent event(wxEVT_CHAR) ;
MacCreateKeyEvent( event, focus , keymessage , modifiers , when , wherex , wherey , uniChar ) ;
long keyval = event.m_keyCode ;
- short realkeyval = short(keymessage & charCodeMask) ;
bool handled = false ;
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 ;
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;