SUMMARY I noticed it in: - Stalker 2 - Satisfactory In Unreal Engine games if I have Ukrainian at the top of my keyboard layout list, it'll break input in the game and nothing I can do about it until I move English to the top and relogin. STEPS TO REPRODUCE 1. Add Ukrainian keyboard layout 2. Move Ukrainian keyboard layout to the top of the keyboard layout list 3. Start Satisfactory (theoretically any Unreal game in Proton) 4. Try to move in the game OBSERVED RESULT Keymaps are borked EXPECTED RESULT I guess order of keyboard layouts should affect that SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 6.4.3 KDE Frameworks Version: 6.16.0 Qt Version: 6.9.1 Kernel Version: 6.15.7-zen1-1-zen (64-bit) Graphics Platform: Wayland Processors: 12 × AMD Ryzen 5 5600H with Radeon Graphics Memory: 16 GiB of RAM (13.5 GiB usable) Graphics Processor 1: AMD Radeon Graphics Graphics Processor 2: NVIDIA GeForce RTX 3060 Laptop GPU ADDITIONAL INFORMATION There's also an issue with SDL games and RimWorld where keybinds are broken, but only if I start the game with Ukrainian and until I restart it with English layout, so I think it's different, maybe not even a kwin issue.
Presumably the game is expecting W, A, S, and D keyspresses that are no longer occurring when the keyboard layout is Ukrainian, right? If you re-bind the keys in the game to use the keys according to where they are in a Ukrainian keyboard layout, does it work? If so, then this is not really a bug, and could only be made better by the game looking for different things for its key events.
It's definitely not a game thing. Testing this right now, it seems like it's an issue with Wine and Proton, but it's fixed in Proton GE, so I probably should report it to Wine. Thanks for your time. This can be marked as resolved.
Correction, this is an issue with Wine X11 and is fixed with Wine Wayland. Might as well be an X11/Xwayland bug. There's a somewhat similar bug with native games that don't capture keybinds using physical layout. If Ukrainian is selected when such game is launched, the bindings will be broken until the game is restarted with English layout selected, but when using Wayland (without Xwayland) the restart is not needed and the keybinds work or don't depending on the currently selected keyboard layout.