Pass KeyInput to OnKey functions
This commit is contained in:
committed by
Paul Chote
parent
2742985520
commit
6967c1fff3
@@ -65,7 +65,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
if (mapFilterInput != null)
|
||||
{
|
||||
mapFilterInput.TakeKeyboardFocus();
|
||||
mapFilterInput.OnEscKey = () =>
|
||||
mapFilterInput.OnEscKey = _ =>
|
||||
{
|
||||
if (mapFilterInput.Text.Length == 0)
|
||||
canceling();
|
||||
@@ -77,7 +77,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
|
||||
return true;
|
||||
};
|
||||
mapFilterInput.OnEnterKey = () => { approving(); return true; };
|
||||
mapFilterInput.OnEnterKey = _ => { approving(); return true; };
|
||||
mapFilterInput.OnTextEdited = () =>
|
||||
{
|
||||
mapFilter = mapFilterInput.Text;
|
||||
|
||||
Reference in New Issue
Block a user