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

@@ -181,6 +181,15 @@ MyCanvas::MyCanvas( MyFrame *parent )
void MyCanvas::OnChar( wxKeyEvent &event )
{
#if wxUSE_UNICODE
if (event.m_uniChar)
{
m_text += event.m_uniChar;
Refresh();
return;
}
#endif
// some test cases
switch (event.m_keyCode)
{
@@ -192,7 +201,6 @@ void MyCanvas::OnChar( wxKeyEvent &event )
default: m_text += event.m_keyCode; break;
}
Refresh();
}
void MyCanvas::OnPaint( wxPaintEvent &event )