don't use toupper() with non-ASCII key codes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38170 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -93,7 +93,9 @@ wxAcceleratorTable::wxAcceleratorTable(int n, const wxAcceleratorEntry entries[]
|
|||||||
{
|
{
|
||||||
const wxAcceleratorEntry& entry = entries[i];
|
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(),
|
M_ACCELDATA->m_accels.Append(new wxAcceleratorEntry(entry.GetFlags(),
|
||||||
keycode,
|
keycode,
|
||||||
|
Reference in New Issue
Block a user