Skip to content

Regression: Switching keyboard layouts results in corrupted keyboard output #17187

Open

Description

@juj

Windows Terminal version

1.19.10821.0

Windows build number

10.0.22631.3447

Other Software

N/A

Steps to reproduce

  1. Open command prompt
  2. Change to another keyboard layout in taskbar (e.g. from English to Finnish)
  3. Bug 1: open the keyboard layout UI in task bar, and observe that the keyboard layout is showing conflicting state
  4. Type in chars to the command prompt window
  5. Bug 2: observe that typed keys are incorrect (they do not follow the Finnish keymap)
  6. Close the command prompt window
  7. Change the keyboard layout to Finnish
  8. Open a new command prompt, so that this prompt starts up immediately in the Finnish keyboard layout
  9. Type in chars to the command prompt window
  10. Observe that this time they keys are indeed correct for Finnish keyboard layout, unlike in step 4.

So it looks like starting up command prompt in the desired keyboard layout produces correct keys to that layout, but starting prompt in another layout and then attempting to change the layout while command prompt is running, results in corrupted layout.

Showcase video of the bug in action: https://youtu.be/LDEJsrhHgRo

Expected Behavior

No response

Actual Behavior

Incorrect keys are output.

Activity

  1. added
    Issue-BugIt either shouldn't be doing this or needs an investigation.
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on May 3, 2024
  2. zadjii-msft commented on May 3, 2024

    @zadjii-msft
    Member

    You know what, we just published a major update to our IME implementation in the nightly Canary branch. It was rewritten from the ground up. Can you try that out, and see if that repros this behavior/? You can get it from: https://aka.ms/terminal-canary-installer
    If you already have the Canary build installed, you can use this link to force an update.

  3. juj commented on May 3, 2024

    @juj
    Author

    Thanks for the quick reply. Before I try it out, is the canary installation somehow separate (and uninstallable?) so that it won't overwrite my regular command prompt? Or is there a way to roll back to the previous command prompt from the canary one?

  4. added
    Needs-AttentionThe core contributors need to come back around and look at this ASAP.
    and removed
    Needs-Author-FeedbackThe original author of the issue/PR needs to come back and respond to something
    on May 3, 2024
  5. lhecker commented on May 3, 2024

    @lhecker
    Member

    Yes it's a completely separate, packaged application. It'll not conflict with your other Windows Terminal installations. And if you uninstall it, it'll be gone as if it was never installed. :)

    I don't think Finnish relies on IME/TSF, but I think it's worth a try regardless, since there's a number of other input related changes in there.

    Edit: I tested the same Windows Terminal version, on (almost) the same Windows version, with the steps in the YouTube video and I couldn't reproduce the issue. Something fishy is going on. 🤔
    It may be worth trying to uninstall the Finnish layout, reboot, and reinstall it. Or maybe some similar combination? I wonder if something about msctf (the text input service) is broken.

  6. juj commented on May 3, 2024

    @juj
    Author

    Ok, trying out the Canary version, the layout issue does not reproduce there.

    I've also tried a couple of other applications, and the layout issue does not occur in any of those either: Notepad, Sublime Text, Firefox and Chrome web browser, Paint.NET, they are all good. Only cmd.exe is giving this keyboard layout issue.

    image

    image

  7. juj commented on May 3, 2024

    @juj
    Author

    Not much info to glean about the Text Input Management Service...

    image

  8. carlos-zamora commented on May 8, 2024

    @carlos-zamora

    Thanks for confirming that it doesn't repro on Canary. This should be available now in WT Preview v1.21. Closing as fixed.

  9. juj commented on Sep 18, 2024

    @juj
    Author

    Hey, any idea when this fixed 1.21 version might land to end users? I am still regularly hitting this bug on multiple Windows 11 PCs that have dual English + Finnish keyboard layouts set up, most recently today on an up-to-date Windows 11 PC with Windows Terminal 1.20.11781.0.

  10. DHowett commented on Sep 18, 2024

    @DHowett
    Member

    You should be able to install Terminal 1.21 via winget or the Releases page in this repository. We are rolling it out slowly on account of a platform issue in Windows 11 23H2 (10.0.226xx.0), as we've measured an increase in hanging sessions.

  11. juj commented on Feb 25, 2025

    @juj
    Author

    It turns out this issue is still happening, but the characters that are getting printed have changed. I think this bug should be reopened.

    Microsoft Windows [Version 10.0.26100.2605]

    Windows Terminal
    Version: 1.21.10351.0

    Or should I open a new issue?

  12. lhecker commented on Feb 25, 2025

    @lhecker
    Member

    I think since it's just us here, we can just reopen this issue. This lets us keep its entire history. In what way does it behave now?

  13. juj commented on Feb 26, 2025

    @juj
    Author

    Here is a video: https://youtu.be/BFI-9UfRjNk

    The behavior is quit the same as before. The only difference I notice is that the incorrect characters that are displayed are different than in the first video.

  14. juj commented on May 22, 2025

    @juj
    Author

    Friendly ping: I wonder if this issue could be looked at?

    I got a new PC, so this issue is reproducing on two different Windows 11 systems I have now. It is causing a lot of annoyance, and a major regression from Windows 10.

    Setup is a rather simple dual keyboard layout that I've used as long as I remember, since Windows NT days or similar.

    Image

    Windows 11 Pro 23H2
    Microsoft Windows [Version 10.0.22631.5335]
    Windows Terminal
    Version: 1.22.11141.0

  15. juj commented on Oct 9, 2025

    @juj
    Author

    Ping, any updates here? This issue is still happening.

    Microsoft Windows [Version 10.0.26100.4351]
    Windows Terminal Version: 1.22.12111.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIt either shouldn't be doing this or needs an investigation.Needs-AttentionThe core contributors need to come back around and look at this ASAP.Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions