]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/accel.cpp
really fix warning about implicitly converting 0 and 1 to size_t -- use explicit...
[wxWidgets.git] / 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,