You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On a swiss german keyboard layout, the physical_keycode of the § and < keys are swapped on Wayland compared to X11. keycode and key_label are the same. The keys Ü and ¨ have different physical_keycode and keycode, but the same key_label. I tested a few other ISO layouts and they had the same issue.
Keyboard
X11 physical_keycode
Wayland physical_keycode
X11 keycode
Wayland keycode
X11 key_label
Wayland key_label
§ (below Esc)
96
167
167
167
167
167
< (left of Y)
167
96
60
60
60
60
Ü (right of P)
91
123
91
123
220
220
¨ (right of Ü)
93
125
93
125
93
125
Steps to reproduce
You need a keyboard with a physical ISO layout. JIS apparently works correctly (#99008 (comment)). No idea about ANSI.
Open the attached MRP and set display/display_server/driver.linuxbsd to x11 or wayland. Start the project, press the keys from the table above and check the values in the output tab in the editor.
@jrb0001 Thank you for checking.
I tested by setting a Swiss German keyboard layout in a Japanese keyboard environment and checked the key codes, and it seems that correct values are being obtained regardless of my changes.
Since "<" does not physically exist on Japanese keyboards, I checked "§", "Ü", and "¨".
This may only serve as a reference since the physical keyboards are not exactly the same.
Tested versions
Reproducible in:
System information
Godot v4.4.dev4 - Arch Linux #1 SMP PREEMPT_DYNAMIC Fri, 01 Nov 2024 03:30:41 +0000 on Wayland - X11 display driver, Multi-window, 3 monitors - Vulkan (Mobile) - dedicated AMD Radeon RX 6900 XT (RADV NAVI21) - AMD Ryzen 9 3950X 16-Core Processor (32 threads)
Issue description
On a swiss german keyboard layout, the physical_keycode of the § and < keys are swapped on Wayland compared to X11. keycode and key_label are the same. The keys Ü and ¨ have different physical_keycode and keycode, but the same key_label. I tested a few other ISO layouts and they had the same issue.
Steps to reproduce
You need a keyboard with a physical ISO layout. JIS apparently works correctly (#99008 (comment)). No idea about ANSI.
Open the attached MRP and set
display/display_server/driver.linuxbsd
tox11
orwayland
. Start the project, press the keys from the table above and check the values in the output tab in the editor.Minimal reproduction project (MRP)
bug-physical_key.zip
The text was updated successfully, but these errors were encountered: