http://bugs.winehq.org/show_bug.cgi?id=14180
--- Comment #13 from Alex Henrie alexhenrie24@gmail.com 2012-05-03 20:53:07 CDT --- Created attachment 40019 --> http://bugs.winehq.org/attachment.cgi?id=40019 Patch that effectively disables TranslateMessage
If TranslateMessage's ability to send messages is removed, the following happens:
Ctrl+1, Ctrl+2, Ctrl+3 assign control groups 1, 2, 3 Alt+1, Alt+2, Alt+3 select control groups 1, 2, 3 1, 2, 3 do nothing
Further testing revealed that Ctrl+1,2,3 and Alt+1,2,3 continue to work because they are handled by TranslateAccelerator, not TranslateMessage. Likewise, Shift+1,2,3 is handled by TranslateAccelerator, even though these combinations do nothing. Starcraft simply depends on TranslateMessage sending a WM_CHAR message with the character '1', '2', or '3' to select control group 1, 2, or 3. On a US keyboard, WM_CHAR messages are correctly sent with the characters 1 2 3, and on a French keyboard, WM_CHAR messages are correctly sent with the characters & é ".
I tried running Starcraft on a real Windows 7 box with a French keyboard layout. The exact same bug occurs. In this end, this is a bug in Starcraft, not a bug in Wine, and should be marked INVALID.
To play Starcraft with a French keyboard, either change your keyboard layout, always hold down Alt when selecting control groups, or always use the num pad when selecting control groups. Happy gaming!