Only call use uppercase letter if control, alt, or shift is held down,
otherwise lower case accelerators won't work. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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?
|
||||
|
Reference in New Issue
Block a user