Fix keys like F11 triggering two events when sent from Atlas to the game engine
This was SVN commit r8987.
This commit is contained in:
parent
f0ea32cb8d
commit
92e84a9112
@ -180,7 +180,9 @@ private:
|
||||
}
|
||||
else
|
||||
{
|
||||
POST_MESSAGE(GuiCharEvent, (GetSDLKeyFromWxKeyCode(evt.GetKeyCode()), evt.GetUnicodeKey()));
|
||||
// Slight hack: Only pass 'normal' keys; special keys will generate a KeyDown/KeyUp event instead
|
||||
if (evt.GetKeyCode() < 256)
|
||||
POST_MESSAGE(GuiCharEvent, (GetSDLKeyFromWxKeyCode(evt.GetKeyCode()), evt.GetUnicodeKey()));
|
||||
|
||||
evt.Skip();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user