fixes #2795: cancel chat with esc

This commit is contained in:
Sascha Biedermann
2013-03-20 23:55:12 +01:00
parent ed0e0a8a41
commit d53dcc859f

View File

@@ -79,7 +79,14 @@ namespace OpenRA.Widgets
if (composing)
{
if (e.KeyName == "backspace")
if (e.KeyName == "escape")
{
composing = false;
content = "";
LoseFocus();
return true;
}
else if (e.KeyName == "backspace")
{
if (content.Length > 0)
content = content.Remove(content.Length - 1);