From c867687d9a96a35f77e78579a19ea0f45695c2c2 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sat, 6 May 2017 14:13:12 +0100 Subject: [PATCH] Prevent repeated keys from toggling observer shroud selector. --- .../Widgets/Logic/Ingame/ObserverShroudSelectorLogic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Widgets/Logic/Ingame/ObserverShroudSelectorLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/Ingame/ObserverShroudSelectorLogic.cs index a2caa23cf6..0ac678923b 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Ingame/ObserverShroudSelectorLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Ingame/ObserverShroudSelectorLogic.cs @@ -133,7 +133,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic public bool HandleKeyPress(KeyInput e) { - if (e.Event == KeyInputEvent.Down) + if (e.Event == KeyInputEvent.Down && !e.IsRepeat) { var h = Hotkey.FromKeyInput(e); if (h == Game.Settings.Keys.ObserverCombinedView && !limitViews)