]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/menucmn.cpp
fix wxDateTime offset for Apple Developer Tools (SourceForge bug # 614010)
[wxWidgets.git] / src / common / menucmn.cpp
index 05bb4f7f8c1c8ef5ede084d4eee852280b571fea..707646dfa7431b47d69abbcd6685a8a257003c3f 100644 (file)
@@ -132,7 +132,13 @@ wxAcceleratorEntry *wxGetAccelFromString(const wxString& label)
         else {
             if ( current.Len() == 1 ) {
                 // it's a letter
-                keyCode = wxToupper(current[0U]);
+                keyCode = current[0U];
+
+                // Only call wxToupper if control, alt, or shift is held down,
+                // otherwise lower case accelerators won't work.
+                if (accelFlags != wxACCEL_NORMAL) {
+                    keyCode = wxToupper(keyCode);
+                }
             }
             else {
                 // is it a function key?