Re: [PATCH] cannot input bar with JP106 keyboards

From: ryutaroh
Date: Sat Dec 20 2003 - 05:03:37 EST


From: Vojtech Pavlik <vojtech@xxxxxxx>
Subject: Re: [PATCH] cannot input bar with JP106 keyboards
Date: Sat, 20 Dec 2003 10:35:32 +0100

> > By the way, the bar key on JP 106 keyboard is actually the backslash
> > key and bar is equal to shift-backslash on JP 106. But there is
> > another backslash key (scancode 0x73) and input of backslash is not a
> > problem.
>
> Keycode 183 is correct for the japanese backslash key. 2.4 didn't
> differentiate, 2.6 does. You just need to update your keymap.

2.4 kernel does differentiate two backslash key on JP 106 keyboard.

When I press lower-right backslash (scancode 0x73), I get keycode
89 on both Linux 2.4 and 2.6.

When I press upper-right backslash (scancode 0x7d), whose key top is
Japanese yen and bar, I get keycode 124 on Linux 2.4 but 183 on Linux
2.6.

Is the change of keycode of upper-right backslash a new feature of
Linux 2.6? What is the advantage of this new feature?

The following is from /usr/share/keymaps/i386/qwerty/jp106.kmap in
Debian:

keycode 89 = backslash underscore
control keycode 89 = Control_backslash
keycode 124 = backslash bar
control keycode 124 = Control_backslash

Ryutaroh Matsumoto
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/