Skip to content

Commit 3f6975c

Browse files
TylerLeonhardtdaxian-dbw
authored andcommitted
Change the key binding 'Alt+D' to 'Alt+Shift+D' for the windows edit mode (#1037)
1 parent e9533d1 commit 3f6975c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

PSReadLine/KeyBindings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ void SetDefaultWindowsBindings()
230230
{ Keys.F8, MakeKeyHandler(HistorySearchBackward, "HistorySearchBackward") },
231231
{ Keys.ShiftF8, MakeKeyHandler(HistorySearchForward, "HistorySearchForward") },
232232
// Added for xtermjs-based terminals that send different key combinations.
233-
{ Keys.AltD, MakeKeyHandler(KillWord, "KillWord") },
233+
{ Keys.AltShiftD, MakeKeyHandler(KillWord, "KillWord") },
234234
{ Keys.CtrlAt, MakeKeyHandler(MenuComplete, "MenuComplete") },
235235
{ Keys.CtrlW, MakeKeyHandler(BackwardKillWord, "BackwardKillWord")},
236236
};

PSReadLine/Keys.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ internal static class Keys
532532
public static PSKeyInfo AltY = Alt('y');
533533
public static PSKeyInfo AltZ = Alt('z');
534534
public static PSKeyInfo AltShiftB = Alt('B');
535+
public static PSKeyInfo AltShiftD = Alt('D');
535536
public static PSKeyInfo AltShiftF = Alt('F');
536537
public static PSKeyInfo AltSpace = Alt(ConsoleKey.Spacebar); // !Windows, system menu.
537538
public static PSKeyInfo AltPeriod = Alt('.'); // !Linux, CLR bug

0 commit comments

Comments
 (0)