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

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

John Scipione <jscipione@xxxxxxxxx> a écrit :
> 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...

We have an issue indeed.
It's mapped to OPT like Left Win ; while Right Win is mapped to CMD
like Left Alt

> I went to look into the Keymap preflet code and, the above idea is
> not
> going to work since pushing modifier keys changes the keymap view,
> duh! We
> can't use any modifiers at all. My next best idea is to just always
> swap,
> is there a really good reason that you'd want to copy or move instead?

You may want to copy a key, for example completely overwrite caps lock
with control or something similar.
There's another problem with that : there is no way to get caps lock
back! (it is possible to get regular characters by dragging them from
somewhere else, for example the character map application).

What about :
 - left click drag to swap keys
 - right click drag gets a popup on mouse release asking what to do

Anything besides swapping key is not used too often, so that should be
ok ?

--
Adrien.

Other related posts: