Skip to content
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 key can be stuck in Windows Terminal #14904

Closed
devlie opened this issue Feb 24, 2023 · 7 comments
Closed

Ctrl key can be stuck in Windows Terminal #14904

devlie opened this issue Feb 24, 2023 · 7 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting

Comments

@devlie
Copy link
Member

devlie commented Feb 24, 2023

Windows Terminal version

1.17.1023

Windows build number

10.0.25300.1000

Other Software

No response

Steps to reproduce

Not sure. Most of the time I'm just typing typical stuffs.

Expected Behavior

Ctrl key is not stuck.

Actual Behavior

I'm reopening #14343, which was suspected to be dupe of #14345/#14129, but those are supposedly fixed on the build I'm on.

After some times, Ctrl key will be stuck for a particular tab. I usually find out when hitting Backspace would delete the whole word even though I'm not pressing down Ctrl key, or typing some alphabets would produce something like ^A

I'm positive the problem is scoped to a Terminal tab:

  • If I open a new tab, the issue doesn't persist.
  • The problem doesn't repro on Windows Run dialog (WIN+R) while issue is happening.
@devlie devlie added Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Feb 24, 2023
@lhecker
Copy link
Member

lhecker commented Feb 25, 2023

Can you try the solution of the other issue that was linked (#14338)? In other words, if you're using PowerShell, try running this:

echo "`e[?67;9999l"

@devlie
Copy link
Member Author

devlie commented Feb 27, 2023

@lhecker / @j4james what's the command for cmd.exe? I'm reproing this issue in regular cmd, not just powershell. I tried those on cmd and it didn't work so I figured the escape chars might be different.

@j4james
Copy link
Collaborator

j4james commented Feb 27, 2023

In the cmd shell you can use the echo command with no quotes, but you need to press Ctrl+[ to get an escape, then follow that with [?67;9999l. The escape will show up as ^[, so the full command will look like this:

echo ^[[?67;9999l

@j4james
Copy link
Collaborator

j4james commented Feb 27, 2023

I'm just thinking it might also help opening the shell with a debug tap, so we can see what key sequences the terminal is generating.

@zadjii-msft
Copy link
Member

(OP responded to us on an internal mail thread - we're waiting for another repro to get the text of a debug tap. I didn't see any ?67h's in the output of the tap, but I was just scanning a screenshot. There were a couple git commands around the time of the repro, maybe there's some other API that triggers it?)

@zadjii-msft zadjii-msft added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Mar 1, 2023
@j4james
Copy link
Collaborator

j4james commented Mar 1, 2023

Bear in mind that the issue reported by the OP was that the Ctrl key was stuck in general, e.g. seeing ^A when typing an A, so it's not just BkSp becoming Ctrl+BkSp. That makes me think it's unlikely to be related to DECBKM.

@zadjii-msft
Copy link
Member

OP replied in email and this issue hasn't come back since they recently paved their machine. We'll close till it comes back (if it ever does)

@zadjii-msft zadjii-msft closed this as not planned Won't fix, can't repro, duplicate, stale Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting
Projects
None yet
Development

No branches or pull requests

4 participants