]> git.saurik.com Git - wxWidgets.git/commitdiff
don't use toupper() with non-ASCII key codes
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 17 Mar 2006 13:49:47 +0000 (13:49 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 17 Mar 2006 13:49:47 +0000 (13:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38170 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/accel.cpp

index b9a49a85e6e18a38a383f50a292d0487531ba04b..e19d33c09f0b200821f92779f884422d07d68006 100644 (file)
@@ -93,7 +93,9 @@ wxAcceleratorTable::wxAcceleratorTable(int n, const wxAcceleratorEntry entries[]
     {
         const wxAcceleratorEntry& entry = entries[i];
 
-        int keycode = wxToupper(entry.GetKeyCode());
+        int keycode = entry.GetKeyCode();
+        if ( isascii(keycode) )
+            keycode = toupper(keycode);
 
         M_ACCELDATA->m_accels.Append(new wxAcceleratorEntry(entry.GetFlags(),
                                                             keycode,