Applied patch [ 1325857 ] CJK input method doesn't work properly(GTK, CVS)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36976 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
abe64011cd
commit
25f182c18b
@ -1163,12 +1163,7 @@ static gint gtk_window_key_press_callback( GtkWidget *widget,
|
|||||||
bool ret = false;
|
bool ret = false;
|
||||||
bool return_after_IM = false;
|
bool return_after_IM = false;
|
||||||
|
|
||||||
if( wxTranslateGTKKeyEventToWx(event, win, gdk_event) )
|
if( wxTranslateGTKKeyEventToWx(event, win, gdk_event) == false )
|
||||||
{
|
|
||||||
// Emit KEY_DOWN event
|
|
||||||
ret = win->GetEventHandler()->ProcessEvent( event );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
// Return after IM processing as we cannot do
|
// Return after IM processing as we cannot do
|
||||||
// anything with it anyhow.
|
// anything with it anyhow.
|
||||||
@ -1203,6 +1198,9 @@ static gint gtk_window_key_press_callback( GtkWidget *widget,
|
|||||||
#endif
|
#endif
|
||||||
if (return_after_IM)
|
if (return_after_IM)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
// Emit KEY_DOWN event
|
||||||
|
ret = win->GetEventHandler()->ProcessEvent( event );
|
||||||
|
|
||||||
#ifndef __WXGTK20__
|
#ifndef __WXGTK20__
|
||||||
// This is for GTK+ 1.2 only. The char event generatation for GTK+ 2.0 is done
|
// This is for GTK+ 1.2 only. The char event generatation for GTK+ 2.0 is done
|
||||||
|
@ -1163,12 +1163,7 @@ static gint gtk_window_key_press_callback( GtkWidget *widget,
|
|||||||
bool ret = false;
|
bool ret = false;
|
||||||
bool return_after_IM = false;
|
bool return_after_IM = false;
|
||||||
|
|
||||||
if( wxTranslateGTKKeyEventToWx(event, win, gdk_event) )
|
if( wxTranslateGTKKeyEventToWx(event, win, gdk_event) == false )
|
||||||
{
|
|
||||||
// Emit KEY_DOWN event
|
|
||||||
ret = win->GetEventHandler()->ProcessEvent( event );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
// Return after IM processing as we cannot do
|
// Return after IM processing as we cannot do
|
||||||
// anything with it anyhow.
|
// anything with it anyhow.
|
||||||
@ -1203,6 +1198,9 @@ static gint gtk_window_key_press_callback( GtkWidget *widget,
|
|||||||
#endif
|
#endif
|
||||||
if (return_after_IM)
|
if (return_after_IM)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
// Emit KEY_DOWN event
|
||||||
|
ret = win->GetEventHandler()->ProcessEvent( event );
|
||||||
|
|
||||||
#ifndef __WXGTK20__
|
#ifndef __WXGTK20__
|
||||||
// This is for GTK+ 1.2 only. The char event generatation for GTK+ 2.0 is done
|
// This is for GTK+ 1.2 only. The char event generatation for GTK+ 2.0 is done
|
||||||
|
Loading…
Reference in New Issue
Block a user