Merge pull request #2810 from bidifx/cancel-chat
cancel ingame-chat with esc
This commit is contained in:
1
AUTHORS
1
AUTHORS
@@ -44,6 +44,7 @@ Also thanks to:
|
||||
* Psydev
|
||||
* Raymond Martineau (mart0258)
|
||||
* Riderr3
|
||||
* Sascha Biedermann (bidifx)
|
||||
* Tim Mylemans (gecko)
|
||||
* Tirili
|
||||
* Vladimir Komarov (VrKomarov)
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user