From 568c0346fce3aa83c5c8c00e903e2f54cbf3d0e8 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 17 Jan 2006 09:25:34 +0000 Subject: [PATCH] Applied patch [ 1344168 ] wxUniv (on MSW) IM input no response By Danny Raynor git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36915 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/univ/textctrl.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/univ/textctrl.cpp b/src/univ/textctrl.cpp index 92553baa44..5a336af029 100644 --- a/src/univ/textctrl.cpp +++ b/src/univ/textctrl.cpp @@ -4683,6 +4683,9 @@ void wxTextCtrl::OnChar(wxKeyEvent& event) if ( !event.HasModifiers() ) { int keycode = event.GetKeyCode(); +#if wxUSE_UNICODE + wxChar unicode = event.GetUnicodeKey(); +#endif if ( keycode == WXK_RETURN ) { if ( IsSingleLine() || (GetWindowStyle() & wxTE_PROCESS_ENTER) ) @@ -4704,6 +4707,14 @@ void wxTextCtrl::OnChar(wxKeyEvent& event) // skip event.Skip() below return; } +#if wxUSE_UNICODE + else if (unicode > 0) + { + PerformAction(wxACTION_TEXT_INSERT, -1, unicode); + + return; + } +#endif } #ifdef __WXDEBUG__ // Ctrl-R refreshes the control in debug mode