From 85aa47b4895975d38d681ee34fea2ddaa8ec27bc Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Fri, 8 Jul 2016 16:16:35 -0700 Subject: [PATCH] Use Control-D for delete --- .../host/msh/ConsoleHostUserInterface.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterface.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterface.cs index bb992699a9..83581f0618 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterface.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterface.cs @@ -1865,7 +1865,8 @@ namespace Microsoft.PowerShell continue; } - if (keyInfo.Key == ConsoleKey.Delete) + if (keyInfo.Key == ConsoleKey.Delete + || (keyInfo.Key == ConsoleKey.D && keyInfo.Modifiers.HasFlag(ConsoleModifiers.Control))) { if (index < s.Length) {