make modifiers consistent

This commit is contained in:
Laura Hausmann 2019-12-22 00:12:56 +01:00
parent 6ae94d33b0
commit 893534935f
Signed by: zotan
GPG key ID: 5EC1D38FFC321311

View file

@ -250,7 +250,7 @@ namespace telegram {
// currentInputLine = currentInputLine.Remove(currentInputLine.Length - 1);
ScreenUpdate();
break;
case ConsoleKey.LeftArrow when key.Modifiers.HasFlag(ConsoleModifiers.Shift):
case ConsoleKey.LeftArrow when key.Modifiers.HasFlag(ConsoleModifiers.Alt):
if (currentInputPos == 0)
break;
@ -261,7 +261,7 @@ namespace telegram {
currentInputPos = lastIndex;
ScreenUpdate();
break;
case ConsoleKey.RightArrow when key.Modifiers.HasFlag(ConsoleModifiers.Shift):
case ConsoleKey.RightArrow when key.Modifiers.HasFlag(ConsoleModifiers.Alt):
if (currentInputPos >= currentInputLine.Length)
break;