http://bugs.winehq.org/show_bug.cgi?id=58247
Bug ID: 58247 Summary: ABNT Keyboard Not Working Properly in Wine with Wayland Driver Product: Wine Version: 10.7 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winewayland Assignee: wine-bugs@winehq.org Reporter: xnep1@hotmail.com Distribution: ---
Created attachment 78588 --> http://bugs.winehq.org/attachment.cgi?id=78588 Tracefile with winedebug=keyboard,key showing "/" not working
When running Wine applications using the Wayland driver, certain keys on the Brazilian ABNT2 keyboard (such as the slash /, question mark ?, and other special characters) do not function correctly. These keys either generate no character.
In contrast, when using the X11 driver (wine X11), the same keys function as expected, and the correct characters are produced. Upon inspection, the scan codes received under Wayland are extended (e.g., 0x259 instead of 0x59 for the slash key), which seems to lead to incorrect mapping or interpretation by Wine.
This issue appears to stem from incomplete or incorrect handling of extended scan codes or keyboard layout mapping for the br-abnt2 layout in the Wayland input.
In my tests, I forced the correct scan code for the slash key (0x59), and after this adjustment, the key started working properly again.
I have attached a trace log file showing the key input events during the failure. Although I am currently using a modified version of Wine to generate this trace, the problem also occurs on the stable Wine release. (It's late and I'm not going to redo the test just to have a clean trace file. Sorry.)