http://bugs.winehq.org/show_bug.cgi?id=14180
Summary: StarCraft: keyboard shortcut doesn't work with french keyboard (azerty) Product: Wine Version: 1.1.0 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: yann@droneaud.fr
Starcraft allows setting groups of units and assigning them to a number using CTRL+# (# : 0..9) and recalling them using the number. In StarCraft game, see Help -> Keystroke Help:
Ctrl-# - Save Group # # - Recall Group #
Under MS Windows, keystroke works well even with a french keyboard, but under wine it doesn't work.
On french keyboard (azerty), number are enabled with the shift key, but trying to use CTRL+SHIFT+# doesn't work either.
If I switch my keyboard to US using command such as "setxkbmap -model pc105 -layout us", those keystrokes work as expected.
This problem related to keyboard mapping may not affect only StarCraft, but some others games / softwares as well.
http://bugs.winehq.org/show_bug.cgi?id=14180
--- Comment #1 from Vitaliy Margolen vitaliy@kievinfo.com 2008-06-29 13:21:13 --- Does [ctrl] + [number key] work?
http://bugs.winehq.org/show_bug.cgi?id=14180
--- Comment #2 from Yann Droneaud yann@droneaud.fr 2008-06-29 13:49:35 --- (In reply to comment #1)
Does [ctrl] + [number key] work?
[ctrl] + [number key] doesn't work with upper key of the keyboard and with keypad number key. With the upper key it does nothing and with the keypad number, it move the map (numlock is activated).
Upper keys on my french keyboard are
shift : 1 2 3 4 5 6 7 8 9 0 ° + non shift: & é " ' ( - è _ ç à ) =
http://bugs.winehq.org/show_bug.cgi?id=14180
Charles de Noyelle wine@spontex.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wine@spontex.org
--- Comment #3 from Charles de Noyelle wine@spontex.org 2008-07-07 16:06:21 --- I confirm the bug. If I just run wine with my french keyboard, and X like that :
Section "InputDevice" Identifier "Keyboard" Driver "kbd" Option "CoreKeyboard" Option "XkbRules" "xorg" Option "XkbModel" "pc105" Option "XkbLayout" "fr" Option "XkbVariant" "latin9" EndSection
All the tests have been made "cap locked"
1. Ctrl+1 -> saves unit as "1" (nothing visible, but see 3) 2. hitting "1" does NOT select unit 3. hitting alt+1 selects unit and centers it on screen.
You can fix "2" with the tip : "setxkbmap -model pc105 -layout us" which makes the game select unit as expected.
http://bugs.winehq.org/show_bug.cgi?id=14180
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #4 from Lei Zhang thestig@google.com 2008-07-08 20:42:21 --- confirming then
http://bugs.winehq.org/show_bug.cgi?id=14180
--- Comment #5 from Austin English austinenglish@gmail.com 2009-01-05 11:04:22 --- Is this still an issue in current (1.1.12 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=14180
--- Comment #6 from Charles de Noyelle wine@spontex.org 2009-01-06 16:15:38 --- (In reply to comment #5)
Is this still an issue in current (1.1.12 or newer) wine?
Yes : same thing as described in comment #3 occurs in wine-1.1.12
http://bugs.winehq.org/show_bug.cgi?id=14180
--- Comment #7 from Austin English austinenglish@gmail.com 2009-07-08 15:08:14 --- Is this still an issue in current (1.1.25 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=14180
--- Comment #8 from Yann Droneaud yann@droneaud.fr 2009-07-09 15:23:40 --- (In reply to comment #7)
Is this still an issue in current (1.1.25 or newer) wine?
Yes : same thing as described in comment #3 occurs in wine-1.1.25-255-gb9be3bd
http://bugs.winehq.org/show_bug.cgi?id=14180
--- Comment #9 from Austin English austinenglish@gmail.com 2010-05-19 16:45:55 --- This is your friendly reminder that there has been no bug activity for 6 months. Is this still an issue in current (1.1.44 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=14180
valinor4@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |valinor4@gmail.com
--- Comment #10 from valinor4@gmail.com 2010-07-30 12:34:08 --- Yes, I use Wine 1.2~rc7-0ubuntu1 and this is still an issue.
http://bugs.winehq.org/show_bug.cgi?id=14180
--- Comment #11 from Alex Henrie alexhenrie24@gmail.com 2012-05-02 19:47:10 CDT --- Created attachment 40006 --> http://bugs.winehq.org/attachment.cgi?id=40006 Patch that makes all keys act like the 1 key
I found out that if I change TranslateMessage to set wparam='1' on all WM_CHAR messages it sends, 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 select control group 1
Does anyone have an idea why this would be?
http://bugs.winehq.org/show_bug.cgi?id=14180
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alexhenrie24@gmail.com
--- Comment #12 from Alex Henrie alexhenrie24@gmail.com 2012-05-02 19:49:18 CDT --- PS I am using a physically US keyboard set to a French (France) keyboard layout.
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!
http://bugs.winehq.org/show_bug.cgi?id=14180
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID
--- Comment #14 from Alex Henrie alexhenrie24@gmail.com --- Again, this is a bug in Starcraft, not a bug in Wine.
http://bugs.winehq.org/show_bug.cgi?id=14180
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #15 from Bruno Jesus 00cpxxx@gmail.com --- Closing invalid bugs.