From 7764302ac39d9b25bb3233ba189f621fccc16bee Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Tue, 13 Jul 2010 20:50:35 +1200 Subject: [PATCH] Fix cursor blink on mousemove --- OpenRA.Game/Widgets/TextFieldWidget.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenRA.Game/Widgets/TextFieldWidget.cs b/OpenRA.Game/Widgets/TextFieldWidget.cs index a6ef50e0d7..d3c0614536 100644 --- a/OpenRA.Game/Widgets/TextFieldWidget.cs +++ b/OpenRA.Game/Widgets/TextFieldWidget.cs @@ -51,12 +51,14 @@ namespace OpenRA.Widgets { OnLoseFocus(); var lose = base.LoseFocus(mi); - System.Console.WriteLine("{1} asked to lose focus; returning {0}",lose, this.Id); return lose; } public override bool HandleInput(MouseInput mi) { + if (mi.Event == MouseInputEvent.Move) + return false; + // Lose focus if they click outside the box; return false so the next widget can grab this event if (mi.Event == MouseInputEvent.Down && !RenderBounds.Contains(mi.Location.X,mi.Location.Y) && LoseFocus(mi)) return false;