]> git.saurik.com Git - wxWidgets.git/commitdiff
isascii changed to isprint for better logging
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 18 May 1999 14:52:21 +0000 (14:52 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 18 May 1999 14:52:21 +0000 (14:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/controls/controls.cpp

index 58d89b768851b304d68ad001edb6f177922569f1..3e76a41b2dd0ee43ae043e28c274e2f0def0cb19 100644 (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;