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
This commit is contained in:
parent
4617be085f
commit
568c0346fc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user