Implement proper word navigation escape sequences (closes #2)
This commit is contained in:
parent
9dd2f06160
commit
e00a4c793d
|
@ -250,6 +250,7 @@ namespace tgcli {
|
||||||
// currentInputLine = currentInputLine.Remove(currentInputLine.Length - 1);
|
// currentInputLine = currentInputLine.Remove(currentInputLine.Length - 1);
|
||||||
ScreenUpdate();
|
ScreenUpdate();
|
||||||
break;
|
break;
|
||||||
|
case ConsoleKey.B when key.Modifiers.HasFlag(ConsoleModifiers.Alt):
|
||||||
case ConsoleKey.LeftArrow when key.Modifiers.HasFlag(ConsoleModifiers.Alt):
|
case ConsoleKey.LeftArrow when key.Modifiers.HasFlag(ConsoleModifiers.Alt):
|
||||||
if (currentInputPos == 0)
|
if (currentInputPos == 0)
|
||||||
break;
|
break;
|
||||||
|
@ -261,6 +262,7 @@ namespace tgcli {
|
||||||
currentInputPos = lastIndex;
|
currentInputPos = lastIndex;
|
||||||
ScreenUpdate();
|
ScreenUpdate();
|
||||||
break;
|
break;
|
||||||
|
case ConsoleKey.F when key.Modifiers.HasFlag(ConsoleModifiers.Alt):
|
||||||
case ConsoleKey.RightArrow when key.Modifiers.HasFlag(ConsoleModifiers.Alt):
|
case ConsoleKey.RightArrow when key.Modifiers.HasFlag(ConsoleModifiers.Alt):
|
||||||
if (currentInputPos >= currentInputLine.Length)
|
if (currentInputPos >= currentInputLine.Length)
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue