Handle End key on Windows

This commit is contained in:
miguel
2018-05-13 22:01:29 -04:00
parent 47dbb47c58
commit c6a1b92b5a
2 changed files with 3 additions and 1 deletions

View File

@@ -199,6 +199,7 @@ namespace Terminal.Gui {
Adjust ();
break;
case Key.End:
case Key.ControlE: // End
point = text.Length;
Adjust ();

View File

@@ -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;