Pass KeyInput to OnKey functions
This commit is contained in:
committed by
Paul Chote
parent
2742985520
commit
6967c1fff3
@@ -44,7 +44,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
Panel.Layout = new GridLayout(Panel);
|
||||
|
||||
SearchTextField = widget.Get<TextFieldWidget>("SEARCH_TEXTFIELD");
|
||||
SearchTextField.OnEscKey = () =>
|
||||
SearchTextField.OnEscKey = _ =>
|
||||
{
|
||||
SearchTextField.Text = "";
|
||||
SearchTextField.YieldKeyboardFocus();
|
||||
|
||||
Reference in New Issue
Block a user