From 1bd59dddc35692e132beb60030c6324b295c8a57 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Sat, 18 Mar 2000 20:18:00 +0000 Subject: [PATCH] wxAccel fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6829 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/accel.cpp | 2 +- src/gtk1/accel.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gtk/accel.cpp b/src/gtk/accel.cpp index 9b861acb20..f3f9ba6a68 100644 --- a/src/gtk/accel.cpp +++ b/src/gtk/accel.cpp @@ -53,7 +53,7 @@ wxAcceleratorTable::wxAcceleratorTable( int n, wxAcceleratorEntry entries[] ) int flag = entries[i].GetFlags(); int keycode = entries[i].GetKeyCode(); int command = entries[i].GetCommand(); - if ((keycode >= (int)'A') && (keycode <= (int)'Z')) keycode = (int)tolower( (char)keycode ); + if ((keycode >= (int)'a') && (keycode <= (int)'z')) keycode = (int)toupper( (char)keycode ); M_ACCELDATA->m_accels.Append( new wxAcceleratorEntry( flag, keycode, command ) ); } } diff --git a/src/gtk1/accel.cpp b/src/gtk1/accel.cpp index 9b861acb20..f3f9ba6a68 100644 --- a/src/gtk1/accel.cpp +++ b/src/gtk1/accel.cpp @@ -53,7 +53,7 @@ wxAcceleratorTable::wxAcceleratorTable( int n, wxAcceleratorEntry entries[] ) int flag = entries[i].GetFlags(); int keycode = entries[i].GetKeyCode(); int command = entries[i].GetCommand(); - if ((keycode >= (int)'A') && (keycode <= (int)'Z')) keycode = (int)tolower( (char)keycode ); + if ((keycode >= (int)'a') && (keycode <= (int)'z')) keycode = (int)toupper( (char)keycode ); M_ACCELDATA->m_accels.Append( new wxAcceleratorEntry( flag, keycode, command ) ); } } -- 2.45.2