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:
parent
1cf9b41c2d
commit
8c03c8bed1
@ -93,7 +93,9 @@ wxAcceleratorTable::wxAcceleratorTable(int n, const wxAcceleratorEntry entries[]
|
||||
{
|
||||
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(),
|
||||
keycode,
|
||||
|
Loading…
Reference in New Issue
Block a user