Fix MoveEnd name conflicting with base class

This commit is contained in:
tznind
2023-04-06 04:49:15 +01:00
parent 5c799fc749
commit a5f9c07022
2 changed files with 2 additions and 13 deletions

View File

@@ -83,7 +83,7 @@ namespace Terminal.Gui {
AddCommand (Command.DeleteCharLeft, () => { DeleteCharLeft (); return true; });
AddCommand (Command.LeftHome, () => MoveHome ());
AddCommand (Command.Left, () => MoveLeft ());
AddCommand (Command.RightEnd, () => MoveEnd ());
AddCommand (Command.RightEnd, () => { MoveEnd (); return true; });
AddCommand (Command.Right, () => MoveRight ());
// Default keybindings for this view
@@ -354,11 +354,6 @@ namespace Terminal.Gui {
return true;
}
bool MoveEnd ()
{
CursorPosition = fieldLen;
return true;
}
bool MoveLeft ()
{

View File

@@ -83,7 +83,7 @@ namespace Terminal.Gui {
AddCommand (Command.DeleteCharLeft, () => { DeleteCharLeft (); return true; });
AddCommand (Command.LeftHome, () => MoveHome ());
AddCommand (Command.Left, () => MoveLeft ());
AddCommand (Command.RightEnd, () => MoveEnd ());
AddCommand (Command.RightEnd, () => { MoveEnd (); return true; });
AddCommand (Command.Right, () => MoveRight ());
// Default keybindings for this view
@@ -272,12 +272,6 @@ namespace Terminal.Gui {
return true;
}
bool MoveEnd ()
{
CursorPosition = fieldLen;
return true;
}
bool MoveLeft ()
{
DecCursorPosition ();