Add keyboard shortcut support to ButtonWidgets.

Hook up 'escape' and 'return' as appropriate for moving through menus.
This commit is contained in:
Paul Chote
2011-05-23 19:38:49 +12:00
parent 124f19f00b
commit 81515705ec
18 changed files with 44 additions and 2 deletions

View File

@@ -245,7 +245,7 @@ namespace OpenRA.Widgets
return false;
// Can any of our children handle this?
foreach (var child in Children)
foreach (var child in Children.OfType<Widget>().Reverse())
if (child.HandleKeyPressOuter(e))
return true;