Prevent repeated keys from toggling observer shroud selector.

This commit is contained in:
Paul Chote
2017-05-06 14:13:12 +01:00
parent fff2f097d0
commit c867687d9a

View File

@@ -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)