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

  • From: "Ingo Weinhold" <ingo_weinhold@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 08 Nov 2011 22:05:22 +0100

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

A right click could open a context menu from which a modifier (maybe even other 
characters) can be chosen.

Alternatively a left click could open a popup (list/tree or a more complex 
dialog) from which a modifier or character can be chosen. At least I don't 
quite see the point of why a click on the key button would produce the 
character. I mean one could as well press the actual key on the keyboard, 
right?. If others see a point, it could simple be two modes between which one 
can switch via menu item, check box, or whatever.

As another alternative a floating window could be opened via a menu item or 
some button from which key functions could be dragged and dropped.

> 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 ?

*shrug* I haven't used anything beside selecting a keymap from the list and 
switching the Alt/Ctrl modifiers for ages.

CU, Ingo

Other related posts: