fixes #2795: cancel chat with esc
This commit is contained in:
@@ -79,7 +79,14 @@ namespace OpenRA.Widgets
|
|||||||
|
|
||||||
if (composing)
|
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)
|
if (content.Length > 0)
|
||||||
content = content.Remove(content.Length - 1);
|
content = content.Remove(content.Length - 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user