[Bug 2832] New: Japanese Keyboard layout not correct

Wine Bugs wine-bugs at winehq.org
Mon Mar 28 19:32:49 CST 2005


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

           Summary: Japanese Keyboard layout not correct
           Product: Wine
           Version: 20050310
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: wine-x11driver
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: Aric.Cyr at gmail.com


I was having a mysterious problem with my Japanese 106 keyboard in World of
Warcraft.  The keyboard worked just fine when logging into the game or typing
messages in game, etc.  However, using the macro keys for the quickbar (1 2 3
... 0) each of the keys was off by one.  The keys were mapped as:

1 = 1
2 = 1
3 = 2
4 = 3 
5 = 4
...

Notice that the 1 and 2 key both mapped to one, and every key after that maps to
the previous key.  This only occured for the top keyboard row and text input
fields all worked correctly (which was the mysterious part).

Anyways, I tracked down the problem to the keyboard layout for jp106 in the
x11drv/keyboard.c.  For Japanese keyboards, the first printable character on the
keyboard is '1' (as the shown in the main_key_JA_jp106[MAIN_LEN][4] array). 
However, the jp106 keyboard is defined to use the regular qwerty scan and vkey
maps, which seem to define the first key as OEM, not '1'.  I believe this was
causing my off-by-one key problem, so created a new jp106 qwerty scan and vkey
map to fix the problem.  I have tested the patch with World of Warcraft, and
indeed my keys are now all mapped correctly.  I am not familiar with the
keyboard stuff too much, so let me know if there are any problems with the
patch, otherwise please commit it.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list