Refactor existing hodgepodge of hardcoded mouse/keyboard events into DefaultInputController.

This commit is contained in:
Paul Chote
2010-07-25 18:12:02 +12:00
parent 2248320af7
commit eac49ca641
10 changed files with 115 additions and 118 deletions

View File

@@ -140,6 +140,8 @@ namespace OpenRA.Widgets
public override bool HandleKeyPressInner(KeyInput e)
{
if (e.Event == KeyInputEvent.Up) return false;
if (e.KeyChar == '\t')
{
TabChange(e.Modifiers.HasModifier(Modifiers.Shift));