closes #2874: improved ingame chat

This commit is contained in:
Sascha Biedermann
2013-03-28 18:39:26 +01:00
parent b4a2489874
commit 1eb7c62c62
16 changed files with 255 additions and 61 deletions

View File

@@ -31,6 +31,7 @@ namespace OpenRA.Widgets
public Func<bool> OnEnterKey = () => false;
public Func<bool> OnTabKey = () => false;
public Func<bool> OnEscKey = () => false;
public Action OnLoseFocus = () => { };
public int CursorPosition { get; protected set; }
@@ -121,6 +122,9 @@ namespace OpenRA.Widgets
if (e.KeyName == "tab" && OnTabKey())
return true;
if (e.KeyName == "escape" && OnEscKey())
return true;
if (e.KeyName == "left")
{
if (CursorPosition > 0)