From fac2987b2fc35ba82ca5c7a9ae11d899f642b060 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 18 May 1999 14:52:21 +0000 Subject: [PATCH] isascii changed to isprint for better logging git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/controls/controls.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/samples/controls/controls.cpp b/samples/controls/controls.cpp index 58d89b7688..3e76a41b2d 100644 --- a/samples/controls/controls.cpp +++ b/samples/controls/controls.cpp @@ -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; -- 2.45.2