On Thu Nov 23 14:38:45 2023 +0000, Rémi Bernon wrote:
I think the scancode to vkey tables are very Windows-specific, and although vkey are supposed to abstract the scancodes, I believe it's very legacy and except for some specific ones, the vkey don't really have a true meaning like the Xkb keysym. I don't think there are many tables out there, and many Windows layout just re-use qwerty with minor variations (which I don't think really matter) but a completely different vkey -> wchar mapping. Having dynamic vkey tables, which is what winex11 is doing, is just confusing applications even more.
Regarding dvorak, the Windows dvorak layout has indeed a quite different scancode to vkey mapping. I don't think it matters very much but if it does then we can probably detect it from the xkb_variant like I was doing on winex11 side (I actually dropped it before finding a way to get the xkb_variant back).