Skip to content

Commit

Permalink
Revert "Change the key binding 'Alt+D' to 'Alt+Shift+D' for the windo…
Browse files Browse the repository at this point in the history
…ws edit mode (#1037)" (#1040)

This reverts commit 3f6975c.
  • Loading branch information
TylerLeonhardt authored and daxian-dbw committed Sep 13, 2019
1 parent 7d779cf commit 5afeced
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion PSReadLine/KeyBindings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ void SetDefaultWindowsBindings()
{ Keys.F8, MakeKeyHandler(HistorySearchBackward, "HistorySearchBackward") },
{ Keys.ShiftF8, MakeKeyHandler(HistorySearchForward, "HistorySearchForward") },
// Added for xtermjs-based terminals that send different key combinations.
{ Keys.AltShiftD, MakeKeyHandler(KillWord, "KillWord") },
{ Keys.AltD, MakeKeyHandler(KillWord, "KillWord") },
{ Keys.CtrlAt, MakeKeyHandler(MenuComplete, "MenuComplete") },
{ Keys.CtrlW, MakeKeyHandler(BackwardKillWord, "BackwardKillWord")},
};
Expand Down
1 change: 0 additions & 1 deletion PSReadLine/Keys.cs
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,6 @@ internal static class Keys
public static PSKeyInfo AltY = Alt('y');
public static PSKeyInfo AltZ = Alt('z');
public static PSKeyInfo AltShiftB = Alt('B');
public static PSKeyInfo AltShiftD = Alt('D');
public static PSKeyInfo AltShiftF = Alt('F');
public static PSKeyInfo AltSpace = Alt(ConsoleKey.Spacebar); // !Windows, system menu.
public static PSKeyInfo AltPeriod = Alt('.'); // !Linux, CLR bug
Expand Down

0 comments on commit 5afeced

Please sign in to comment.