Skip to content

Keyboard in WSL2 Doesn't Follow Windows Input Language, GUI Applications Not Adhering to Set Default #1184

Open
@cassiocsantana

Description

@cassiocsantana

Windows Version

10.0.22621.3007

WSL Version

2.0.9.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.133.1-1

Distro Version

Ubuntu 22.04

Other Software

No response

Repro Steps

  • Install any application on WSL Ubuntu, such as GitKraken.
  • Attempt to use the application. In my case, I use the Portuguese (Brazil) International keyboard layout on Windows. My laptop has an English layout, but I have an external PT_BR keyboard, resulting in two layouts on Windows: the aforementioned international layout and the native PT_BR layout.
  • Upon opening the application, the keyboard layout is not respected, leading to the loss of all accentuations.
  • Followed the steps in this tutorial without success: Keyboard layout messed up for KBD_PORTUGUESE_BRAZILIAN_ABNT2. #27

Expected Behavior

When opening the installed application, such as GitKraken on WSL Ubuntu, the keyboard layout should adhere to the settings configured in Windows. In this case, the Portuguese (Brazil) International keyboard layout should be recognized and applied within the application, allowing for proper handling of accentuations and ensuring a seamless user experience.

Actual Behavior

Upon opening the installed application, such as GitKraken on WSL Ubuntu, the keyboard layout does not respect the settings configured in Windows. Despite having the Portuguese (Brazil) International keyboard layout selected in Windows, the application fails to recognize and apply this layout. As a consequence, accentuations are not handled correctly, leading to a loss of functionality. Following the steps outlined in the tutorial (#27) did not resolve the issue, and the synchronization of keyboard layouts between WSL2 and Windows remains problematic.

Diagnostic Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions