From 7ef14f56e2f52a3da7e0fb0254e134d1308fd28a Mon Sep 17 00:00:00 2001 From: Oliver Brakmann Date: Sun, 10 May 2015 17:46:39 +0200 Subject: [PATCH] Fix HotkeyEntryWidget keeping keyboard focus after receiving input --- OpenRA.Mods.Common/Widgets/HotkeyEntryWidget.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OpenRA.Mods.Common/Widgets/HotkeyEntryWidget.cs b/OpenRA.Mods.Common/Widgets/HotkeyEntryWidget.cs index afed6b72d5..9d9ff634d6 100644 --- a/OpenRA.Mods.Common/Widgets/HotkeyEntryWidget.cs +++ b/OpenRA.Mods.Common/Widgets/HotkeyEntryWidget.cs @@ -81,6 +81,8 @@ namespace OpenRA.Mods.Common.Widgets Key = Hotkey.FromKeyInput(e); + YieldKeyboardFocus(); + return true; }