Yield focus for map generator text settings

Makes any selected text-based map generator settings (currently just the
seed input) yield keyboard focus when the user presses escape or enter.
This commit is contained in:
Ashley Newson
2025-02-02 15:14:24 +00:00
committed by Gustas Kažukauskas
parent 09259be796
commit c6d5a1a182

View File

@@ -230,6 +230,8 @@ namespace OpenRA.Mods.Common.Widgets.Logic
input.IsValid = () => valid;
};
input.OnEscKey = _ => { input.YieldKeyboardFocus(); return true; };
input.OnEnterKey = _ => { input.YieldKeyboardFocus(); return true; };
break;
}