inet(evdev) blindly overrides some of the keys: <MUHE>, <HENK>, <HKTG> and many others
Submitted by Alex-Daniel Jakimenko
Assigned to xkb..@..bat.ru
Description
I have a japanese keyboard that has additional keys (henkan, muhenkan, hiragana_katakana – keycodes 100, 102 and 101) and I want to remap these keys to something different.
I have created a completely new symbol file (without any includes) with these lines:
key <MUHE>
{ [ a, b ] };
key <HENK>
{ [ c, d ] };
key <HKTG>
{ [ e, f ] };
But it is not working fully. Here is what happens:
- If I press MUHE then nothing is typed in, xev reports that Muhenkan was pressed (which is wrong, it should be mapped to "a")
- If I press Shift+MUHE then letter "b" is typed in – correct! This means that there is no error in my config. Exactly the same thing happens with the other keys – bare key is not remapped, but shift+key works correctly.
Since I can remap any other key (alt, ctrl, whatever) without any problems, and since I can set shift+<henk|muhe|hktg> keys correctly, I am suspecting that it is a bug in xkb.
For now, the workaround is to use xmodmap: xmodmap -e 'keycode 100 = a'
I was struggling with this problem for two days, there is almost no information on that topic, but it seems like there is another mention of this problem here: http://ubuntuforums.org/showthread.php?t=966384&p=6087155#post6087155