Fix special keys on Windows
This commit is contained in:
parent
f574620d07
commit
95988802f7
|
@ -166,6 +166,22 @@ public:
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_event = aEvent;
|
m_event = aEvent;
|
||||||
|
|
||||||
|
// EVT_CHAR_HOOK returns some incorrect keys (shift+symbol,
|
||||||
|
// in particular). If the key is an ASCII printable, grab the
|
||||||
|
// code from GetUnicodeKey instead.
|
||||||
|
|
||||||
|
// TODO: Make the whole hotkey system support Unicode keys.
|
||||||
|
|
||||||
|
if( aEvent.GetKeyCode() >= '!' && aEvent.GetKeyCode() <= '~' )
|
||||||
|
{
|
||||||
|
if( aEvent.GetEventType() == wxEVT_CHAR_HOOK )
|
||||||
|
{
|
||||||
|
aEvent.DoAllowNextEvent();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
EndFlexible( wxID_OK );
|
EndFlexible( wxID_OK );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue