[haiku-bugs] Re: [Haiku] #7965: Keymap Modifiers Menu with Mac Modifiers Option

  • From: "jscipione" <trac@xxxxxxxxxxxx>
  • Date: Mon, 03 Oct 2011 19:16:01 -0000

#7965: Keymap Modifiers Menu with Mac Modifiers Option
----------------------------------+----------------------------
   Reporter:  jscipione           |      Owner:  axeld
       Type:  enhancement         |     Status:  new
   Priority:  normal              |  Milestone:  R1
  Component:  Preferences/Keymap  |    Version:  R1/Development
 Resolution:                      |   Keywords:
 Blocked By:                      |   Blocking:
Has a Patch:  1                   |   Platform:  All
----------------------------------+----------------------------

Comment (by jscipione):

 Replying to [comment:11 axeld]:
 > ... while that is true, that doesn't affect the keymap at all. The Apple
 keymap layout is often different from a regular one, and needs a "* (Mac)"
 keymap alternative. Just to give you a simple example: the '@' symbol is
 (IIRC) Alt-l on a German Mac, but AltGr-Q on a regular keymap. And that's
 just one difference out of many. Finding the backslash on a German Mac
 keyboard is a challenge.

 I might have been a bit hasty in saying that all the "* (Mac)" keymaps
 should be removed outright. I'll concede that you do need a "* (Mac)"
 keymap file to detail the special differences between a PC keyboard and
 Mac keyboard in some locales. But, you should not need a special "* (Mac)"
 keymap just get the differences that are common to all Mac keyboards vs.
 PC keyboards. That should be "baked in".

 > While the standard US keymap might be automatically translated into a
 Mac keyboard keymap, that's likely to actually be the exception rather
 than the rule. And if that's the case (which we would need to verify,
 though), then it's not worth to do that IMO, but one should rather
 automatically choose the Mac keymap alternatives.

 If the common Mac differences are "baked in" then you only need a "*
 (Mac)" keymap version for keyboards that have yet more differences like
 you mentioned above. Out of the 60 or so non-Mac keymap files that exist
 right now, how many need a "* (Mac)" equivalent? I'd guess around 20 of
 them. A 66% reduction in the number of keymap files seems worth it to me.
 Even if it is only a 20% reduction it is still worth it IMHO.

 > BTW your apology about the tone is appreciated.

 I lost my head there for a second. I realize that you are only trying to
 help.

 > > If the above solution were to be implemented... The patches on this
 ticket would also be rendered useless.
 >
 > Yeah, sorry for that, but I guess it's for the better ;-)

 The code is useful to me anyway even if it is not generally applicable.
 I've come to realize that adding a hack to a hack is not a great solution
 to this problem anyway, it must be fixed on a more fundamental level.

 > It's not just for Windows users, but also for Linux users.

 well KDE/Gnome users anyway...

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

Other related posts: