We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b83522b commit bf36369Copy full SHA for bf36369
PSReadLine/Keys.cs
@@ -551,8 +551,12 @@ internal static int GetNormalizedHashCode(this ConsoleKeyInfo obj)
551
552
internal static bool ShouldInsert(this ConsoleKeyInfo key)
553
{
554
- if (key.KeyChar == '\0') return false;
555
-
+ var keyChar = key.KeyChar;
+ if (keyChar == '\0') return false;
556
+ foreach (char c in "`~!@#$%^&*()-_=+[{]}\\|;:'\",<.>/?") {
557
+ // we always want to insert chars essential to the PowerShell experience
558
+ if (keyChar == c) { return true; }
559
+ }
560
if (key.Modifiers != 0)
561
562
// We want to ignore control sequences - but distinguishing a control sequence
0 commit comments