microsoft / WhackWhackTerminal

Terminal Emulator for Visual Studio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`Alt` key does not work as expected for WSLBash & Powershell Emacs mode

rayvega opened this issue · comments

For WSLBash, if hit keys that uses ALT such as to move forward or back one word (respectively ALT+f and ALT+b), delete forward or back one word (i.e. ALT+d and ALT+Backspace), etc. then focus moves to top menu bar of Visual Studio. Also, navigating the command history using Ctrl+n and Ctrl+p doesn't work either.

I also use PSReadLine module which provides emacs keybindings that are equivalent to what's used in bash. Same issue as well.

Related, perhaps have an escape key combo that moves the focus outside of the Terminal pane window (similar to how host key for VirtualBox works). Then maybe this avoids not being able to use ALT (or other common) keybindings and keeps the focus in the Terminal window. Perhaps Ctrl + \ Ctrl + \ can serve this function when in the Term window it could toggle focus back to main VS view? (Normally, Shift + Esc works to close most VS pane windows but it doesn't for the Terminal one)