[haiku-commits] Re: r43210 - haiku/trunk/src/preferences/keymap

  • From: "Adrien Destugues" <pulkomandy@xxxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 08 Nov 2011 21:43:39 +0100

John Scipione <jscipione@xxxxxxxxx> a écrit :
> On Tue, Nov 8, 2011 at 3:27 PM, John Scipione <jscipione@xxxxxxxxx>
> wrote:
>
> > I just read #6442 as well as the linked #6364 and #6362 tickets. I
> > am so
> > confused now. What key is AtlGr assigned to in the French keymap,
> > Right
> > Command (Alt) or right option (Win)? If it's right Alt we are good,
> > if it
> > is right Win then we have an issue...
> >
>
> I checked, on the French.keymap file Right Win and Right Option are
> switched compared to US... I assume that there is a very good reason
> for
> doing this. Um, I'll have to take that into account somehow. Thanks
> for
> pointing out the issue to me.

We ran out of modifier constants :)

Alt and Alt Gr are not the same thing at all, for example alt+e would
trigger some shortcut while alt gr + e would make an Euro sign. So they
get different keycodes.
But now Alt Gr has stolen the code used for Win keys on other keymaps
and there's none left.

The solution, as stated in that ticket, is to add an extra modifier
constant to separate alt, altgr, and win key and have them use different
constants. Doing it will help with my sanity and provide cleaner ground
for future improvements.

(note: in other OS such swapping doesn't occur, of course. Alt Gr isn't
considered as a "modifier", it doesn't trigger shortcuts, just a
different keymap layer)
--
Adrien.

Other related posts: