]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied patch [ 1344168 ] wxUniv (on MSW) IM input no response
authorJulian Smart <julian@anthemion.co.uk>
Tue, 17 Jan 2006 09:25:34 +0000 (09:25 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 17 Jan 2006 09:25:34 +0000 (09:25 +0000)
By Danny Raynor

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36915 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/univ/textctrl.cpp

index 92553baa442592b9bd8d279aed189d6859bfbe74..5a336af029d3b1e7e2b9dbafb439bd236610f002 100644 (file)
@@ -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