microsoft / wslg

Enabling the Windows Subsystem for Linux to include support for Wayland and X server related scenarios
MIT License
9.9k stars 296 forks source link

Enhanced Keyboard Layout Recognition in WSL2 for Linux Applications #1213

Open cassiocsantana opened 5 months ago

cassiocsantana commented 5 months ago

Is your feature request related to a problem? Please describe. I'm currently experiencing difficulties with WSL2 when using Linux applications, as it does not correctly recognize the keyboard layout. Specifically, I have two keyboard layouts, and I constantly need to switch between English International and Portuguese (Brazil). In the Portuguese layout, I require specific key configurations for accents, especially on an external keyboard. In the English International layout, I need different key configurations for various accents.

Describe the solution you'd like I would appreciate it if WSL2 could accurately detect and apply the correct keyboard layout for Linux applications. This would involve seamless switching between the English International and Portuguese (Brazil) layouts, ensuring that the specified key configurations for accents are appropriately recognized.

Describe alternatives you've considered I have contemplated manually adjusting the keyboard layout within each Linux application, but this process is cumbersome and not efficient. Additionally, exploring third-party tools for keyboard layout management within WSL2 might be an option, but having native support for this functionality would be preferable.

Additional context It's important to note that the ability to effortlessly switch between keyboard layouts is crucial for users who work with multiple languages or have specific keyboard requirements. Including this feature in WSL2 would greatly enhance the user experience, particularly for those dealing with diverse language and keyboard needs. Any improvements in this regard would be highly appreciated.

github-actions[bot] commented 5 months ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

OneBlue commented 5 months ago

Thank you @cassiocsantana. Are you talking about terminal apps or GUI apps ?

cassiocsantana commented 5 months ago

GUI apps