Skip to content

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

Open
@juj

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.

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

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions