From e604288b3e4ba379b183861c1c39d3072c005f85 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sat, 19 Feb 2005 17:37:45 +0000 Subject: [PATCH] EVT_CHAR_HOOK added git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/app.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/mac/carbon/app.cpp b/src/mac/carbon/app.cpp index 6dc7ffd402..1472ca610c 100644 --- a/src/mac/carbon/app.cpp +++ b/src/mac/carbon/app.cpp @@ -1261,6 +1261,23 @@ bool wxApp::MacSendKeyDownEvent( wxWindow* focus , long keymessage , long modifi } if (!handled) { + wxTopLevelWindowMac *tlw = focus->MacGetTopLevelWindow() ; + + if (tlw) + { + event.Skip( FALSE ) ; + event.SetEventType( wxEVT_CHAR_HOOK ); + // raw value again + event.m_keyCode = realkeyval ; + + handled = tlw->GetEventHandler()->ProcessEvent( event ); + if ( handled && event.GetSkipped() ) + handled = false ; + } + } + + if ( !handled ) + { event.Skip( FALSE ) ; event.SetEventType( wxEVT_CHAR ) ; // raw value again -- 2.50.0