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:
Gilles Depeyrot
2003-02-01 13:45:49 +00:00
parent 70687b638d
commit c921fd5994

View 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?