Fix bogus handling of special keyboard characters everywhere else. Textfields now only accept valid characters, support right-delete.
This commit is contained in:
@@ -108,7 +108,7 @@ namespace OpenRA.Widgets
|
||||
{
|
||||
if (e.Event == KeyInputEvent.Down)
|
||||
{
|
||||
if (e.KeyChar == 27) // Escape
|
||||
if (e.KeyName == "escape")
|
||||
{
|
||||
Stop();
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user