isascii changed to isprint for better logging

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 1999-05-18 14:52:21 +00:00
parent 7a30ee8f2c
commit fac2987b2f

View File

@ -223,7 +223,7 @@ void MyTextCtrl::LogEvent(const char *name, wxKeyEvent& event) const
{
wxString key;
long keycode = event.KeyCode();
if ( isascii((int)keycode) )
if ( isprint((int)keycode) )
key.Printf("'%c'", (char)keycode);
else
{
@ -235,7 +235,6 @@ void MyTextCtrl::LogEvent(const char *name, wxKeyEvent& event) const
case WXK_ESCAPE: key = "ESCAPE"; break;
case WXK_SPACE: key = "SPACE"; break;
case WXK_DELETE: key = "DELETE"; break;
case WXK_START: key = "START"; break;
case WXK_LBUTTON: key = "LBUTTON"; break;
case WXK_RBUTTON: key = "RBUTTON"; break;