Fix key repeat events queueing many deploy/scatter/stop orders.

This commit is contained in:
Paul Chote
2020-01-25 18:33:58 +00:00
committed by abcdefg30
parent 5c76a6e7a7
commit c2bc313bf0

View File

@@ -227,7 +227,7 @@ namespace OpenRA.Mods.Common.Widgets
continue;
// Event is not valid for this button
if (e.Event == KeyInputEvent.Up && !keyUpButtons.Contains(b))
if (!(b.DisableKeyRepeat ^ e.IsRepeat) || (e.Event == KeyInputEvent.Up && !keyUpButtons.Contains(b)))
continue;
b.OnKeyPress(e);