This commit is contained in:
Chris Forbes
2009-11-18 20:53:10 +13:00
parent 36721e9566
commit 9a2f2f1cd7
8 changed files with 88 additions and 3 deletions

View File

@@ -128,6 +128,16 @@ namespace OpenRa.Game
Location = new int2(e.Location)
});
}
protected override void OnKeyPress(KeyPressEventArgs e)
{
base.OnKeyPress(e);
if (e.KeyChar == '\r')
Game.chat.Toggle();
else if (Game.chat.isChatting)
Game.chat.TypeChar(e.KeyChar);
}
}
struct MouseInput