-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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+shift+c and ctrl-d shortcuts do not work in WSL2 #16551
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Closed similar issues:
|
wsl --version |
Could you share your settings.json file/? Are you running anything in WSL other than just your default shell? (bash/zsh/whatever)? Ultimately, that shell is supposed to be the one to handle Ctrl+D, but the Ctrl+Shift+C should be handled by the Terminal. Actually come to think of it... what shell are you using? |
bash. I tried to use ctrl-shift-c in powershell: same issue The shortcuts worked before, then suddenly vanished. |
Huh, curious. I'd usually expect the user settings to include at least "actions":
[
{ "command": {"action": "copy", "singleLine": false }, "keys": "ctrl+c" },
{ "command": "paste", "keys": "ctrl+v" },
{ "command": "find", "keys": "ctrl+shift+f" },
{ "command": { "action": "splitPane", "split": "auto", "splitMode": "duplicate" }, "keys": "alt+shift+d" }
] But yours doesn't have any Maybe there's something else curious going on, where the Terminal thinks that shift is in the opposite of it's actual state. As if caps lock was pressed or something. Does adding the "actions":
[
{ "command": {"action": "copy", "singleLine": false }, "keys": "ctrl+c" }
] binding at least fix |
copying with Any idea what might interfere the shortcuts? |
I used debug-tap to see if keystrokes are captured
To me this reads as if all three keystrokes are received from the terminal |
I found the reason and I cannot resist to blame Cisco Webex client for inappropriate behaviour, capturing keystroke combinations in a selfish way even if it is running in the background. |
A-ha! Thanks - that'll also help future searchers stumble on this issue. 😄 |
Windows Terminal version
1.18.3181.0
Windows build number
10.0.19045.3803
Other Software
WSL Debian
Steps to reproduce
Open WSL terminal
Selected text
Press
ctrl-shift-c
Paste text into terminal
-> Result: no text is not copied
Using
ctrl-c works
Same for
ctrl-d
:Open WSL terminal
Press
ctrl-d
-> Result: nothing happens
Expected Behavior
ctrl-shift-c
copies a selected textctrl-d
exits the terminalActual Behavior
ctrl-shift-c
does not copiy a selected textctrl-d
nothing happensThe text was updated successfully, but these errors were encountered: