diff --git a/src/Microsoft.PowerShell.PSReadLine/ConsoleLib.cs b/src/Microsoft.PowerShell.PSReadLine/ConsoleLib.cs index efb78b1d0..1b3f648b0 100644 --- a/src/Microsoft.PowerShell.PSReadLine/ConsoleLib.cs +++ b/src/Microsoft.PowerShell.PSReadLine/ConsoleLib.cs @@ -386,24 +386,6 @@ namespace Microsoft.PowerShell.Internal sb.Append("Alt"); } -#if UNIX - if (sb.Length > 0) - sb.Append("+"); - // TODO: find better way to map these characters to something more friendly - if ((key.Key >= ConsoleKey.D0 && key.Key <= ConsoleKey.D9) - || (key.Key >= ConsoleKey.Oem1 && key.Key <= ConsoleKey.Oem8)) - { - sb.Append(key.KeyChar); - } - else - { - if (key.Modifiers.HasFlag(ConsoleModifiers.Shift)) - { - sb.Append("Shift+"); - } - sb.Append(key.Key); - } -#else char c = key.KeyChar; if (char.IsControl(c) || char.IsWhiteSpace(c)) { @@ -423,7 +405,6 @@ namespace Microsoft.PowerShell.Internal sb.Append("+"); sb.Append(c); } -#endif return sb.ToString(); } }