4
2
I'm using xkb to create my own keyboard layout. I have a slight problem, though.
key <AE04> {[ Shift_L ]};
key <AE07> {[ Shift_R ]};
key <LFSH> {[ comma , semicolon , bar ]};
key <RTSH> {[ period , colon , period ]};
modifier_map Shift { <AE04>, <AE07> };
The above moves the shift keys to other keys. In order to make the new shift keys actually do something when pressed, I had to add the modifier_map
line. The code also puts regular characters on the old shift keys. So far so good.
The problem is that if I hold down the old left shift key and press some character - lets say "a" - I get ",A". So that key works both as a comma key and as a shift key. The latter is not desired. The same thing happens with the right old shift key. In fact, it also happens with control and alt.
How do I solve this? It feels like I need modifier_unmap
or something.