mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 03:56:31 +00:00
fixed some bugs in gui text box
This commit is contained in:
@@ -80,11 +80,17 @@ namespace MonoGame.Extended.Gui.Controls
|
||||
if (SelectionStart < Text.Length)
|
||||
SelectionStart++;
|
||||
break;
|
||||
case Keys.Home:
|
||||
SelectionStart = 0;
|
||||
break;
|
||||
case Keys.End:
|
||||
SelectionStart = Text.Length;
|
||||
break;
|
||||
default:
|
||||
if (args.Character != null)
|
||||
{
|
||||
Text = Text.Insert(SelectionStart, args.Character.ToString());
|
||||
SelectionStart++;
|
||||
Text += args.Character;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user