[haiku-bugs] Re: [Haiku] #7967: Update menu modifier images to more accurately reflect the corresponding key that appears on the keyboard

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Wed, 09 Nov 2011 11:57:55 -0000

#7967: Update menu modifier images to more accurately reflect the corresponding
key that appears on the keyboard
------------------------------+----------------------------
   Reporter:  jscipione       |      Owner:  stippi
       Type:  enhancement     |     Status:  new
   Priority:  normal          |  Milestone:  R1
  Component:  User Interface  |    Version:  R1/Development
 Resolution:                  |   Keywords:
 Blocked By:                  |   Blocking:
Has a Patch:  0               |   Platform:  All
------------------------------+----------------------------

Comment (by bonefish):

 Replying to [comment:19 jscipione]:
 > I am on-board -- key roles are the way to go. I made a mailing list post
 on dev explaining what I want to do but allow me post the gist of it here
 too.

 Hooray! ;-)

 > Basically I want to set a flag in input_server that chooses between 3
 sets of bitmaps. In order of B_CONTROL_KEY, B_OPTION_KEY, B_COMMAND_KEY
 the bitmap sets are as follows.
 > {{{
 > PC keyboard: "CTRL", "WIN", "ALT" (The default)
 > PC keyboard control and command flipped via Keymaps preflet: "ALT",
 "WIN", "CTRL"
 > Mac keyboard: "CTRL", "OPT", "CMD".
 > }}}

 Now I'm utterly confused. I thought you agree with the key roles approach.
 But that would imply labeling the keys on the keyboard in Keymap with
 "CTRL", "OPT", "CMD" and also use respective shortcut bitmaps.

 > The menu bitmaps that appear would no longer depend on the keymap, just
 the flag in input server.

 Er, maybe people have different visions of how a key roles based approach
 would work. To clarify, mine (which I find simple and stringent) would ...
  1. switch the legends on the keyboard in Keymap when switching between
 Mac/Haiku and Windows mode as done already (r43228),
  1. not switch the shortcut bitmaps *ever*.

 Particularly the last point is why they are key roles. CMD is the main
 shortcut key role. Always. Keymap would visualize the mapping of physical
 keys to key roles. That might be considered confusing, since the key
 physically labeled CTRL wouldn't be mapped to the CTRL key role in Windows
 shortcut mode, but as we already established keyboards with localized
 legends don't quite match anyway. The "ideal" solution would be to invent
 names for the key roles that don't clash with actual key labels, but given
 the obscure kinds of key labels that do already exist (Meta, Super, ...)
 that's not really practical.

 Regarding the Haiku/Mac vs. Windows mode, how/where that is implemented --
 i.e. as a change to the keymaps or a flag for the input server -- is
 really an implementation detail. I suppose a flag would be easier to
 implement, but I don't care as long as it works correctly.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/7967#comment:21>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: