X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/980ee83f63d19f8c7fb3ada5f77a1fec36e8dec1..162d3be3ca27d875ca81f5466b12bc0e399896c3:/src/mac/carbon/app.cpp diff --git a/src/mac/carbon/app.cpp b/src/mac/carbon/app.cpp index e079f74d5c..3e1b8065fc 100644 --- a/src/mac/carbon/app.cpp +++ b/src/mac/carbon/app.cpp @@ -1522,7 +1522,6 @@ bool wxApp::MacSendCharEvent( wxWindow* focus , long keymessage , long modifiers 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 ; @@ -1531,9 +1530,6 @@ bool wxApp::MacSendCharEvent( wxWindow* focus , long keymessage , long modifiers 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 ; @@ -1669,6 +1665,8 @@ 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;