Skip to content

Commit e486136

Browse files
TylerLeonhardtlzybkr
authored andcommitted
added xtermjs keybindings (#878)
1 parent 929f4f9 commit e486136

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

PSReadLine/KeyBindings.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,10 @@ void SetDefaultWindowsBindings()
233233
{ Keys.PageDown, MakeKeyHandler(ScrollDisplayDown, "ScrollDisplayDown") },
234234
{ Keys.CtrlPageUp, MakeKeyHandler(ScrollDisplayUpLine, "ScrollDisplayUpLine") },
235235
{ Keys.CtrlPageDown, MakeKeyHandler(ScrollDisplayDownLine, "ScrollDisplayDownLine") },
236+
// Added for xtermjs-based terminals that send different key combinations.
237+
{ Keys.AltD, MakeKeyHandler(KillWord, "KillWord") },
238+
{ Keys.CtrlAt, MakeKeyHandler(MenuComplete, "MenuComplete") },
239+
{ Keys.CtrlW, MakeKeyHandler(BackwardKillWord, "BackwardKillWord")},
236240
};
237241

238242
// Some bindings are not available on certain platforms

0 commit comments

Comments
 (0)