otherwise lower case accelerators won't work.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19047
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
else {
if ( current.Len() == 1 ) {
// it's a letter
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?
}
else {
// is it a function key?