Skip to content

Commit e82c30f

Browse files
pchoteabcdefg30
authored andcommitted
Fix key repeat events queueing many deploy/scatter/stop orders.
1 parent 5583cbc commit e82c30f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OpenRA.Mods.Common/Widgets/Logic/Ingame/CommandBarLogic.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public CommandBarLogic(Widget widget, World world, Dictionary<string, MiniYaml>
228228
continue;
229229

230230
// Event is not valid for this button
231-
if (e.Event == KeyInputEvent.Up && !keyUpButtons.Contains(b))
231+
if (!(b.DisableKeyRepeat ^ e.IsRepeat) || (e.Event == KeyInputEvent.Up && !keyUpButtons.Contains(b)))
232232
continue;
233233

234234
b.OnKeyPress(e);

0 commit comments

Comments
 (0)