Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keyboard_get_layout_language and keyboard_get_layout_name not returning active layout on Windows 10 if you have multiple keyboards installed under same langugage #94071

Closed
Giganzo opened this issue Jul 8, 2024 · 0 comments · Fixed by #94120

Comments

@Giganzo
Copy link
Contributor

Giganzo commented Jul 8, 2024

Tested versions

Godot v4.2.2.stable
Godot v4.3.beta2

System information

Godot v4.2.2.stable - Windows 10.0.19045

Issue description

keyboard_get_layout_language and keyboard_get_layout_name doesn't return the active layout if you have multiple keyboards installed under the same language option on Windows 10.

Steps to reproduce

On Window 10 if you go to Settings > Time & Language > Language.
Then under Preferred languages click on a language and then the Options button.
Then you add multiple keyboards to this language option

In Godot use either use keyboard_get_layout_language or name with keyboard_get_current_layout.
This will always return the same layout name or language code (might be the default or first added keyboard for this Language option, not sure) and not the active layout.

Minimal reproduction project (MRP)

KeyboardLayoutTest.zip

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

Successfully merging a pull request may close this issue.

4 participants