Ctrl key can be stuck in Windows Terminal #19451

Closed
opened 2026-01-31 06:43:42 +00:00 by claunia · 7 comments
Owner

Originally created by @devlie on GitHub (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.
Originally created by @devlie on GitHub (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.
claunia added the Needs-TriageIssue-BugNeeds-Author-Feedback labels 2026-01-31 06:43:43 +00:00
Author
Owner

@lhecker commented on GitHub (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"
@lhecker commented on GitHub (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: ```pwsh echo "`e[?67;9999l" ```
Author
Owner

@devlie commented on GitHub (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.

@devlie commented on GitHub (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.
Author
Owner

@j4james commented on GitHub (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 commented on GitHub (Feb 27, 2023): In the cmd shell you can use the `echo` command with no quotes, but you need to press <kbd>Ctrl</kbd>+<kbd>[</kbd> 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
Author
Owner

@j4james commented on GitHub (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.

@j4james commented on GitHub (Feb 27, 2023): I'm just thinking it might also help opening the shell with a [debug tap](https://github.com/microsoft/terminal/wiki/Enabling-the-debug-tap), so we can see what key sequences the terminal is generating.
Author
Owner

@zadjii-msft commented on GitHub (Mar 1, 2023):

(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 commented on GitHub (Mar 1, 2023): (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?)
Author
Owner

@j4james commented on GitHub (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.

@j4james commented on GitHub (Mar 1, 2023): Bear in mind that the issue reported by the OP was that the <kbd>Ctrl</kbd> key was stuck in general, e.g. seeing `^A` when typing an <kbd>A</kbd>, so it's not just <kbd>BkSp</kbd> becoming <kbd>Ctrl</kbd>+<kbd>BkSp</kbd>. That makes me think it's unlikely to be related to `DECBKM`.
Author
Owner

@zadjii-msft commented on GitHub (Mar 10, 2023):

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 commented on GitHub (Mar 10, 2023): 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)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#19451