avoid asserts from calling isprint(c) with non ASCII c
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1012,7 +1012,7 @@ void LogKeyEvent(const wxChar *name, const wxKeyEvent& event)
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
if ( wxIsprint((int)keycode) )
|
if ( keycode < 128 && wxIsprint((int)keycode) )
|
||||||
key.Printf(wxT("'%c'"), (char)keycode);
|
key.Printf(wxT("'%c'"), (char)keycode);
|
||||||
else if ( keycode > 0 && keycode < 27 )
|
else if ( keycode > 0 && keycode < 27 )
|
||||||
key.Printf(_("Ctrl-%c"), wxT('A') + keycode - 1);
|
key.Printf(_("Ctrl-%c"), wxT('A') + keycode - 1);
|
||||||
|
Reference in New Issue
Block a user