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:
@@ -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(),
|
||||
|
Reference in New Issue
Block a user