[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: xkb-data: Help needed for Macintosh keyboards

On Mon, Oct 09, 2006 at 01:22:03PM +0200, Gabriel Paubert wrote:
> Well, it works more or less. It does not work as I'd like 
> on my old Powerbook since Apple changed the order of the
> keys right of the spacebar a few years ago:
> - now the keys are: spacebar, Command(Apple), Enter
> - on the old one:   spacebar, Enter,          Alt(Option)
> I have two (indistinguishable, same ADB keycode) keys 
> labeled "Alt" used under MacOS to access third and fourth
> level and only one with the Apple logo. Newer keyboards
> are the other way around and the Keypad Enter has moved.
> I prefer the old layout since I heavily use the 3rd/4th level
> (need to type english, spanish and french) combination and map 
> the Apple/Command key as Meta (so the mapping is similar to
> MacOS). But I shall manage.

Please write ASCII-art as in
to give detailed informations about your keys, that should be clearer ;)

> Nevertheless, it is an improvement over the old situation 
> when most of the 3rd/4th level symbols did not match the 
> ones printed on the keys.
> I've been unable to match MacOS and have something that works
> under emacs: ideally I'd like to use both Alt keys as level3
> (option lv3:alt_switch does it, but both Alt keys then set
> both Modifiers 1 and 5, and emacs does not allow me to type
> 3rd/4th symbols).

Both Alt keys have the same keycodes, so they cannot be distinguished.
IIRC their keycode is the one of Alt_L, and Alt_R can be obtained with
Fn key.
I just filed
about ISO_Level3_Shift being bound to Mod1 and Mod5.

> I'd also like to use both Apple/Command keys as Alt/Meta
> (modifier1, not 4), this works under emacs with option
> altwin:meta_win but not under other apps that insist
> (as I understand it) on checking for Modifier 1. I don't 
> understand eiher why the meta_win insists on mapping the 
> alt_* keys and giving them modifier 1. There may be a reason 
> but it escapes me.

There is indeed a bug, I just filed
You can apply the patch found in this bugreport (take care that it has to
be reverted!)

> On my old laptop, the Menu key actually exists, it
> is Fn+Enter, but not on the new one. This is an easy to
> fix kernel bug, but there no menu key on Apple desktop
> keyboards (they have 3 keys right of the spacebar, instead
> of 4 on PC104/PC105 keyboards).

I do not understand what you say about this Menu key, sorry.


Reply to: