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

[Bug]: Game doesn't detect keyboard layout change for hotkeys #10561

Open
ventodc opened this issue Mar 11, 2023 · 3 comments
Open

[Bug]: Game doesn't detect keyboard layout change for hotkeys #10561

ventodc opened this issue Mar 11, 2023 · 3 comments

Comments

@ventodc
Copy link

ventodc commented Mar 11, 2023

Version of OpenTTD

OpenTTD 13.0, Arch Linux, KDE 5.27, X11

Expected result

Working letter based hotkeys when starting the program with cyrillic keyboard layout and switching it to latin keyboard layout in program

Actual result

Letter based hotkeys don't work when starting the program with cyrillic keyboard layout.
Only starting the program with latin based keyboard layout, letter based hotkeys works.

Steps to reproduce

  1. Start the program with a cyrillic keyboard layout (i tried Bulgarian, Russian, Ukrainian) set in KDE input devices. Start any game, new one or load a save file.
  2. Press 'X' to toggle transparency - it doesn't work, well, probably as expected.
  3. While still running a game, change layout to some latin based and press 'X' to toggle transparency - it still doesn't work.
@anatolyeltsov
Copy link

I can confirm this behavior on Ubuntu 22.10 - both with X11 and Wayland.
Everything is OK on Windows 10.

@mrmbernardi
Copy link
Contributor

I cannot reproduce this. I start with a cyrilic keyboard -> hotkeys don't work -> I switch to latin with the game open -> hotkeys work.

I'm using Xfce 4.16 on Ubuntu 22.04.1 LTS

@Maluscat
Copy link

Same Problem here!

OpenTTD 13.1, Arch Linux, Gnome 43.5
Keyboard layouts: German, German (Koy)

The keyboard shortcuts are determined by the first selected layout when the game is started. Removing the layout in question from the system altogether forces the game to switch to the then-active one.

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

No branches or pull requests

4 participants