Skip to content

Commit

Permalink
Fix key repeat events queueing many deploy/scatter/stop orders.
Browse files Browse the repository at this point in the history
  • Loading branch information
pchote authored and abcdefg30 committed Feb 1, 2020
1 parent 5583cbc commit e82c30f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenRA.Mods.Common/Widgets/Logic/Ingame/CommandBarLogic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public CommandBarLogic(Widget widget, World world, Dictionary<string, MiniYaml>
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);
Expand Down

0 comments on commit e82c30f

Please sign in to comment.