added and documented wxKeyEvent::GetUnicodeKey(); made it work for MSW; added test for it to the text sample

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-06-26 13:14:24 +00:00
parent a76342da41
commit 0d9b2c1636
4 changed files with 56 additions and 22 deletions

View File

@@ -581,6 +581,10 @@ void MyTextCtrl::LogKeyEvent(const wxChar *name, wxKeyEvent& event) const
}
}
#if wxUSE_UNICODE
key += wxString::Format(_T(" (Unicode: %#04x)"), event.GetUnicodeKey());
#endif // wxUSE_UNICODE
wxLogMessage( _T("%s event: %s (flags = %c%c%c%c)"),
name,
key.c_str(),