From c6a1b92b5affcab4fc22d8d9a5ab5df3ac3e5956 Mon Sep 17 00:00:00 2001 From: miguel Date: Sun, 13 May 2018 22:01:29 -0400 Subject: [PATCH] Handle End key on Windows --- Terminal.Gui/Views/TextField.cs | 1 + Terminal.Gui/Views/TextView.cs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Terminal.Gui/Views/TextField.cs b/Terminal.Gui/Views/TextField.cs index 11b5b6f26..89b52651f 100644 --- a/Terminal.Gui/Views/TextField.cs +++ b/Terminal.Gui/Views/TextField.cs @@ -199,6 +199,7 @@ namespace Terminal.Gui { Adjust (); break; + case Key.End: case Key.ControlE: // End point = text.Length; Adjust (); diff --git a/Terminal.Gui/Views/TextView.cs b/Terminal.Gui/Views/TextView.cs index bc3d2476d..6e237488c 100644 --- a/Terminal.Gui/Views/TextView.cs +++ b/Terminal.Gui/Views/TextView.cs @@ -6,7 +6,7 @@ // // // TODO: -// PageUp/PageDown +// PageUp/PageDown // Attributed text on spans // Replace insertion with Insert method // String accumulation (Control-k, control-k is not preserving the last new line, see StringToRunes @@ -815,6 +815,7 @@ namespace Terminal.Gui { } break; + case Key.End: case Key.ControlE: // End currentLine = GetCurrentLine (); currentColumn = currentLine.Count;