[Bug 14180] StarCraft: keyboard shortcut doesn't work with french keyboard (azerty)

wine-bugs at winehq.org wine-bugs at winehq.org
Thu May 3 20:53:07 CDT 2012


http://bugs.winehq.org/show_bug.cgi?id=14180

--- Comment #13 from Alex Henrie <alexhenrie24 at 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!

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the wine-bugs mailing list