From 4768c3d6a55cd6c578eb466b1691126692120669 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sat, 15 Mar 2014 12:37:47 +0100 Subject: [PATCH] map password field Enter/ESC to buttons closes #4869 --- OpenRA.Mods.RA/Widgets/Logic/ConnectionLogic.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OpenRA.Mods.RA/Widgets/Logic/ConnectionLogic.cs b/OpenRA.Mods.RA/Widgets/Logic/ConnectionLogic.cs index 89b4c91bae..c46050a995 100644 --- a/OpenRA.Mods.RA/Widgets/Logic/ConnectionLogic.cs +++ b/OpenRA.Mods.RA/Widgets/Logic/ConnectionLogic.cs @@ -113,6 +113,8 @@ namespace OpenRA.Mods.RA.Widgets.Logic passwordField.IsVisible = () => orderManager.AuthenticationFailed; var passwordLabel = widget.Get("PASSWORD_LABEL"); passwordLabel.IsVisible = passwordField.IsVisible; + passwordField.OnEnterKey = () => { retryButton.OnClick(); return true; }; + passwordField.OnEscKey = () => { abortButton.OnClick(); return true; }; } passwordOffsetAdjusted = false;