https://bugs.winehq.org/show_bug.cgi?id=43010
--- Comment #1 from Iiro Laiho ilmaisin@openmailbox.org --- https://wiki.winehq.org/Wine_Developer%27s_Guide/Windowing_system#Keyboard_m...
Apparently Wine translates the mapped characters to scancodes in a some weird method that involves layouts hard-coded to the Wine source code and guessing the keyboard layout. It's not really a very robust way to do that. At least on PC/Linux platform it IMO would be better to just pass the actual scancodes as they are readily available.