Skip to content

Commit 963f4c5

Browse files
committed
Fix Ctrl+_ on Windows
1 parent da44f14 commit 963f4c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PSReadLine/Keys.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ static ConsoleKeyInfo CtrlAlt(char c)
326326
public static ConsoleKeyInfo CtrlLBracket = Ctrl('\x1b');
327327
public static ConsoleKeyInfo CtrlBackslash = Ctrl('\x1c');
328328
public static ConsoleKeyInfo CtrlRBracket = Ctrl('\x1d');
329-
public static ConsoleKeyInfo CtrlUnderbar = Ctrl('\x1f');
329+
public static ConsoleKeyInfo CtrlUnderbar = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? CtrlShift('\x1f') : Ctrl('\x1f');
330330
public static ConsoleKeyInfo CtrlBackspace = Ctrl(RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? '\x7f' : '\x08');
331331
public static ConsoleKeyInfo CtrlDelete = Ctrl(ConsoleKey.Delete); // !Linux
332332
public static ConsoleKeyInfo CtrlEnd = Ctrl(ConsoleKey.End); // !Linux

0 commit comments

Comments
 (0)