-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ctrl+Space (MenuComplete) not working in Windows Terminal Preview with German keyboard layout #1415
Comments
Thanks for reporting the issue. This is a duplicate of #1086. Quote from that issue:
Given most of the conversation is happening in that issue, I will close this one as a duplicate. |
A bunch of key bindings used in PSReadLine get fixed in the most recent preview release of Windows Terminal (v1.1.1671.0), including ctrl+space (which doesn't need the ctrl+@ workaround binding for |
@daxian-dbw one keybinding that no longer works for me with the latest Terminal Preview is Ctrl+[ in Should I file a separate bug? |
@daxian-dbw Thanks. I had totally forgotten about #906 because I started using Windows Terminal shortly after that and Ctrl+[ worked as I expected. 😊 |
Ah, yeah, it looks Ctrl+[ was fixed in WT preview to generate the same
|
Yes, after removing my workaround keybindings, Ctrl+Space successfully invokes PSReadline MenuComplete in Windows Terminal Preview 1.1.1671.0. |
Environment
Exception report
None.
Steps to reproduce
Enter a partial command line and then try to invoke MenuComplete via Ctrl+Space, e.g.
Get-ChildItem -
Ctrl+SpaceExpected behavior
MenuComplete shows all possible completions (which it does in ConHost Powershell).
Actual behavior
A quotation mark " appears at the cursor location in the buffer.
Additional information
This may be related to #1380 (but I am already using PSReadLine 2.0) or #1086 (Windows Terminal and VS Code may share some code in this area, I don't know). It might also be related to microsoft/terminal#2865. From a comment in that issue, I understand that this is due to terminals handling Ctrl+Space as alias for Ctrl+@. Coincidentally, on a German keyboard you enter " as Shift+2, which is where the US layout has the @ glyph. This comment lead me to try and switch my keyboard layout to US; if I do, Ctrl+Space correctly invokes MenuComplete.
To me, it looks like a complex interaction between Windows Terminal, PSReadLine and the keyboard layout. I cannot say, however, whether the problem is in PSReadLine or Windows Terminal (in which case I would gladly open an issue with them).
The text was updated successfully, but these errors were encountered: