[haiku-bugs] Re: [Haiku] #7428: Alt-Plus won't work in WebPositive

  • From: "leavengood" <trac@xxxxxxxxxxxx>
  • Date: Thu, 02 Aug 2012 13:41:35 -0000

#7428: Alt-Plus won't work in WebPositive
----------------------------------------+----------------------------
   Reporter:  js                        |      Owner:  leavengood
       Type:  bug                       |     Status:  new
   Priority:  normal                    |  Milestone:  R1
  Component:  Applications/WebPositive  |    Version:  R1/Development
 Resolution:                            |   Keywords:
 Blocked By:                            |   Blocking:
Has a Patch:  0                         |   Platform:  All
----------------------------------------+----------------------------

Comment (by leavengood):

 Turns out I'm wrong and pressing Cmd-Shift-= on a US keymap will not send
 Cmd-Shift-+ into the shortcut handling but Cmd-Shift-=. This is probably
 because all the modifiers are taken into account when offsetting within
 the keymap, so Cmd+Shift uses a different offset table than Shift alone
 (actually looking at the code whenever Cmd is pressed the key is never
 offset.) But I think similar logic as described above can be used when
 matching the key, just instead of adding modifiers, both the key and the
 modifiers need to be changed internally.

 Just an additional caveat is that this means developers could define two
 shortcuts in the same app which are ambiguous, depending on the keymap
 (Cmd-+ and Cmd-Shift-= being the obvious ones in this case.) So some sort
 of warning should come up for that maybe, just unfortunately that can
 really only be done at runtime, and it depends on the user keymap.

 I may just need to research and see what other OSes do for this, because I
 know that Cmd-+ works fine on the Mac for instance.

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

Other related posts: