mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Use Control-F/B for Right/Left arrow
This commit is contained in:
@@ -1879,7 +1879,8 @@ namespace Microsoft.PowerShell
|
||||
continue;
|
||||
}
|
||||
|
||||
if (keyInfo.Key == ConsoleKey.LeftArrow)
|
||||
if (keyInfo.Key == ConsoleKey.LeftArrow
|
||||
|| (keyInfo.Key == ConsoleKey.B && keyInfo.Modifiers.HasFlag(ConsoleModifiers.Control)))
|
||||
{
|
||||
if (Console.CursorLeft > cursorLeft)
|
||||
{
|
||||
@@ -1889,7 +1890,8 @@ namespace Microsoft.PowerShell
|
||||
continue;
|
||||
}
|
||||
|
||||
if (keyInfo.Key == ConsoleKey.RightArrow)
|
||||
if (keyInfo.Key == ConsoleKey.RightArrow
|
||||
|| (keyInfo.Key == ConsoleKey.F && keyInfo.Modifiers.HasFlag(ConsoleModifiers.Control)))
|
||||
{
|
||||
if (Console.CursorLeft < cursorLeft + s.Length)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user