Rémi Bernon rbernon@codeweavers.com writes:
X11 keycodes are just Linux keycodes + 8 nowadays according to evdev or libinput drivers, and the conversion to Windows scancodes can be much simpler than what we currently do.
Signed-off-by: Rémi Bernon rbernon@codeweavers.com
I'm sending this as RFC because I'd like to have some feedback, possibly from people with exotic keyboards.
For me and my FR AZERTY keyboard, this fixes all the key mapping issues, such as the 7/è top row keys for instance [1], and I don't understand why we have to go through the layout detection code to find X11 keycode to Windows scancode mapping.
There's a bit of mapping to do because higher keycodes don't always match between Windows and Linux, but that's pretty straightfoward.
It sort of defeats the purpose of using X11 if you assume that you are always running directly on the local Linux server. In particular VNC is sending different scancodes, and of course a remote server may not be a Linux box at all.