Date: Wed, 12 Mar 2014 02:26:06 GMT From: Yuichiro NAITO <naito.yuichiro@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/187470: [patch] Apple Wireless Keyboard (JIS) Message-ID: <201403120226.s2C2Q6Hb055028@cgiserv.freebsd.org> Resent-Message-ID: <201403120230.s2C2U0nC021270@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 187470 >Category: bin >Synopsis: [patch] Apple Wireless Keyboard (JIS) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Mar 12 02:30:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Yuichiro NAITO >Release: FreeBSD 10.0-Release >Organization: >Environment: FreeBSD pluto.local 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r262241: Tue Feb 25 13:52:12 JST 2014 root@pluto.local:/usr/obj/usr/src/sys/SLIM amd64 >Description: I'm using Apple Wireless Keyboard (JIS) for FreeBSD 10.0-R on amd64 machine. This keyboard has "Kana" and "Eisu" keys that turns on/off input method. I made a patch to handle these keys by bthidd (bluetooth hid daemon). Usually "Zenkaku-Hankaku" key is used to toggle input method. But Apple designed "Kana" key enables input method, and "Eisu" key disables input method, and lost "Zenkaku-Hankaku" key. This patch enables to send these key events to Xorg kbd driver. >How-To-Repeat: Using Apple Wireless Keyboard (JIS) on FreeBSD 10.0-R box. >Fix: Apply this patch. Patch attached with submission follows: diff --git usr.sbin/bluetooth/bthidd/kbd.c usr.sbin/bluetooth/bthidd/kbd.c index 3e944f0..0b66b64 100644 --- usr.sbin/bluetooth/bthidd/kbd.c +++ usr.sbin/bluetooth/bthidd/kbd.c @@ -225,8 +225,8 @@ static int32_t const x[] = /* Keyboard Int'l 7 8D */ -1, /* Unassigned */ /* Keyboard Int'l 8 8E */ -1, /* Unassigned */ /* Keyboard Int'l 9 8F */ -1, /* Unassigned */ -/* Keyboard Lang 1 90 */ NOBREAK|0xF2, /* None */ -/* Keyboard Lang 2 91 */ NOBREAK|0xF1, /* None */ +/* Keyboard Lang 1 90 */ 0x71, /* eisu */ +/* Keyboard Lang 2 91 */ 0x72, /* kana */ /* Keyboard Lang 3 92 */ 0x78, /* F8 */ /* Keyboard Lang 4 93 */ 0x77, /* F7 */ /* Keyboard Lang 5 94 */ 0x76, /* F6 */ >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403120226.s2C2Q6Hb055028>