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:
committed by
Gustas Kažukauskas
parent
09259be796
commit
c6d5a1a182
@@ -230,6 +230,8 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
input.IsValid = () => valid;
|
input.IsValid = () => valid;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
input.OnEscKey = _ => { input.YieldKeyboardFocus(); return true; };
|
||||||
|
input.OnEnterKey = _ => { input.YieldKeyboardFocus(); return true; };
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user