http://bugs.winehq.org/show_bug.cgi?id=12939
--- Comment #17 from Vitaliy Margolen vitaliy@kievinfo.com 2008-12-20 18:26:47 --- (In reply to comment #16)
(In reply to comment #14)
No you can't do that. Wine _have to_ know and use the exact key state. If something sent key_down, key_up events to Wine that's the state Wine will have.
Ok, so I guess this behaviour has been changed in >=wine-0.9.59.
Yes. Wine distinguishes between left and right control, shift and alt. And properly adjusts for their state changes outside Wine.
In your setup Wine gets conflicting information from X about state of modifier key(s).
This has nothing todo with scancodes.