[xkb] Map alt+key to arrow

Damien R. damienrg+list at gmail.com
Sun May 9 17:11:53 PDT 2010


On 05/07/2010 10:37 AM, Dirk Wallenstein wrote:
> If you run 'xev' with that keymap installed, do you have
>          "(keysym 0xff51, Left)"
> in the output when you press alt+key?

Yes, it got it.

> And if you try it in a terminal you get the same strange output as if
> you press directly Alt+Left?

Exactly, it got the same output (in my case D).

> The Alt modifier is heavily used on the client side (menus and such) and
> clients seem to often track it themselves, so they don't recognize that
> the alt modifier has been 'consumed' in the lookup. It's hard for
> clients because alt is a vmod.

Do you mean that clients does not query X to know the status of alt 
modifier ? If so, how they check it ?

Now, if I do :
key <AD08> { type[Group1] = "PC_ALT_LEVEL2", [ d, Left ],
         actions[Group1] = [ NoAction(), RedirectKey(key=<LEFT>, 
clearmods=Alt)] };

should it work or will client still track alt ?

When I try that, alt+d or d+alt restart the X server.

Maybe, I misunderstand how X and clients work, so
can you give some links or explain ?

> I would avoid advanced mappings involving Alt, currently.
> It works with AltGr. You can put AltGr on both sides of the space bar if
> you have enough keys.

I cannot use AltGr because my keyboard layout uses it to map useful keys.


Thanks,

--
Damien R.



More information about the xorg mailing list