Enable Unicode input methods via GTK's and XIM

under GTK 2.0.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2002-10-30 19:56:03 +00:00
parent cf24909108
commit 9f98d38391
5 changed files with 51 additions and 23 deletions

View File

@@ -1356,8 +1356,11 @@ static void gtk_wxwindow_commit_cb (GtkIMContext *context,
wxKeyEvent event( wxEVT_KEY_DOWN );
// I wonder how well keyval represents a Unicode char
gunichar ch = g_utf8_get_char( str );
event.m_keyCode = ch;
event.m_uniChar = g_utf8_get_char( str );
// Backward compatible for ISO-8859
if (event.m_uniChar < 256)
event.m_keyCode = event.m_uniChar;
if (!ret)
{