#672 - Textfield support for home and end
This commit is contained in:
@@ -117,6 +117,18 @@ namespace OpenRA.Widgets
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (e.KeyName == "home")
|
||||||
|
{
|
||||||
|
CursorPosition = 0;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (e.KeyName == "end")
|
||||||
|
{
|
||||||
|
CursorPosition = Text.Length;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (e.KeyName == "delete")
|
if (e.KeyName == "delete")
|
||||||
{
|
{
|
||||||
if (Text.Length > 0 && CursorPosition < Text.Length)
|
if (Text.Length > 0 && CursorPosition < Text.Length)
|
||||||
|
|||||||
Reference in New Issue
Block a user