On Thu Nov 23 09:37:31 2023 +0000, Alexandros Frantzis wrote:
I assume that the way to add other layouts (e.g., dvorak, colemak) would be to create new scan2vk tables, correct? I wonder if it would be useful, in some cases at least, to have an `xkb_keysym_to_vk` function to fill the VSCtoVK table(s) automatically in the code below. So, instead of the current `keyc -> scan -> vk` we would have `keyc -> scan, keyc -> keysym -> vk`.
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.