Ticket #2222 (closed bug: fixed)

Opened 6 days ago

Last modified 6 days ago

Zenkaku/Hankaku key code in Japanese keymap

Reported by: shinta Assigned to: korli
Priority: normal Milestone: R1
Component: Servers/input_server Version: R1 development
Cc: Platform: x86

Description

Zenkaku/Hankaku key code isn't defined in Japanese keymap. Current key code seem to be space.

Haiku: r25124+
SHINTA (bug No.18)

Attachments

Japanese.keymap.diff (1.7 kB) - added by shinta on 05/10/08 06:10:28.

Change History

05/10/08 06:10:28 changed by shinta

  • attachment Japanese.keymap.diff added.

05/10/08 06:29:30 changed by shinta

Attached patch changes two key codes: Zenkaku/Hankaky key and Katakana/Hiragana key.

Japanese specific key codes are below:

Key name          Scan     Windows'      Windows'
                   code(?)  constants     virtual key code
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Zenkaku/Hankaku   0x11     VK_OEM_AUTO   0xf3
Katakana/Hiragana 0x6e     VK_OEM_COPY   0xf2
Henkan            0x6d     VK_CONVERT    0x1c
Muhenkan          0x6c     VK_NONCONVERT 0x1d

(cf. http://lldev.jp/hsp/script/h_virtual_key.html)

I didn't change the key codes of Henkan and Muhenkan because their key codes are already used by arrow keys.

I tested this patch at my Japanese keyboard "Owltech OWL-KB108PA".

05/10/08 06:42:38 changed by stippi

Ok, I applied the keycodes diff in r25413. I suppose that's not all to make it work though, is it? Thanks so far!

05/10/08 06:53:13 changed by shinta

I think about other two key codes later because I don't face problems yet.

Thank you.

05/10/08 06:56:17 changed by korli

I'm wondering in which code 0xf3 and 0xf2 are supposed to be used ? We might want to reserve these codes in InterfaceDefs.h

05/10/08 07:20:11 changed by shinta

I used 0xf2/0xf3 which is same as Windows' value. I think that Microsoft selected these value because these value seem to be rarely conflict other key codes.

It maybe better to add B_ZENKAKU_HANKAKU and B_KATAKANA_HIRAGANA to InterfaceDefs.h.

05/10/08 07:44:12 changed by korli

  • status changed from new to closed.
  • resolution set to fixed.