http://bugs.winehq.org/show_bug.cgi?id=12939
--- Comment #18 from Dmitry Timoshkov dmitry@codeweavers.com 2008-12-21 01:46:03 --- Created an attachment (id=18104) --> (http://bugs.winehq.org/attachment.cgi?id=18104) Detect key masks in run-time
Does the attached patch help?