terminal icon indicating copy to clipboard operation
terminal copied to clipboard

Alt+Tab to Terminal adds an unwanted keyboard layout to Windows

Open vadimkantorov opened this issue 3 years ago • 1 comments

Windows Terminal version

1.14.2282.0

Windows build number

10.0.22000.978

Other Software

No response

Steps to reproduce

Alt+Tab to Terminal sometimes causes an unwanted keyboard layout appear in Windows. I'm having a WSLv1+python+selenium+chromedriver to headless Windows Chrome running inside Terminal.

I'm not 100% sure that it's Terminal causing this, since this bug reappears in Windows for at least 10 years. But when I'm running this workload in WT, this happens significantly more frequent -> sometimes a few times per minute.

Expected Behavior

No response

Actual Behavior

A US (qwerty) keyboard layout appears by itself in layout switcher after an Alt+Tab. This keyboard layout cannot be found in Windows Settings, and cannot be removed. Screenshot: https://twitter.com/vadimkantorov/status/1567715655092150280

vadimkantorov avatar Sep 18 '22 20:09 vadimkantorov

This may coincide with launching a headless chrome.exe within WT in fact... The problem with these keyboard layouts bugs is that MS has been ignoring them for years (and reports to Feedback Hub led to nothing...), hope I could have anyone from the relevant team contact me for providing some logs or repro information.

vadimkantorov avatar Sep 18 '22 20:09 vadimkantorov

If you have a link to the feedback item you've filed, we can try and make sure it gets promoted to the right folks internally. But this does seem firmly outside the realm of "things the Terminal can fix".

zadjii-msft avatar Sep 23 '22 13:09 zadjii-msft

But this does seem firmly outside the realm of "things the Terminal can fix".

sure thing :(

If you have a link to the feedback item you've filed,

One of mine is: https://aka.ms/AAi69jh , but there are a lot by other people, e.g. https://answers.microsoft.com/en-us/windows/forum/all/windows-keeps-automatically-adding-en-us-keyboard/69aaea0d-f588-4d54-89fa-a632ae7bced3 I think, this problem is there at least since Win10. But this chromedriver launch is the first time I got a stable repro. Unfortunately, no-one contacted me about any of my feedback issues. GitHub is so much better for providing feedback.

vadimkantorov avatar Sep 23 '22 16:09 vadimkantorov

As Mike already said, this does seem firmly outside the realm of "things the Terminal can fix". Because of this I'm going to close this issue.

Something similar to this does happen to me from time to time. As far as I know this happens when the keyboard related entries in the registry go out of sync and the state gets broken. You can find various (short term) bug fixes across the internet like this one: https://superuser.com/questions/1092246/how-to-prevent-windows-10-from-automatically-adding-keyboard-layouts-i-e-us-ke But a proper fix is outside of this issue tracker's realm unfortunately.

lhecker avatar Mar 16 '23 21:03 lhecker

I agree, it seemed more about selenium chrome driver + python script + launched from within Terminal than about Terminal.

This bug has been around for > 10 years, and it was impossible to get even any acknowledgement (including Feedback Hub). Just today it happened again, so I twitted again - no response as usual: https://twitter.com/vadimkantorov/status/1636290415941808128

It would be so much better if MS opened a public GitHub repo and issues for Windows and other apps (e.g. notepad and task manager - opensourcing them would be even better). IMO Feedback hub is too clumsy/slow and it kills engagement (e.g. I never saw anyone posting links to Feedback Hub issues for discussion).

I would be super grateful if you could pass any of these feedbacks internally.

vadimkantorov avatar Mar 16 '23 21:03 vadimkantorov

Yep, I can't disagree. This issue hits me all the time as well. I will try to bring it up, but I can't promise anything.

lhecker avatar Mar 16 '23 21:03 lhecker

Haha, somehow people testing keyboard layouts assume that no-one should in their sane mind remove the English-US :)

vadimkantorov avatar Mar 16 '23 21:03 vadimkantorov