make modifiers consistent
This commit is contained in:
parent
6ae94d33b0
commit
893534935f
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue