[haiku-commits] Re: haiku: hrev46251 - src/kits/shared src/kits/tracker src/apps/webpositive headers/private/shared

  • From: Jérôme Duval <korli@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 18 Oct 2013 16:27:48 +0200

2013/10/18  <jscipione@xxxxxxxxx>:

>
> 1d04310: Keymap: Add a method to get modified characters for a key
>
>   This method fills out the passed-in BList of modified utf-8 characters for
>   a given utf-8 character and set of modifiers.
>
>   For example if you pass in "=" and B_SHIFT_KEY the list will get filled
>   out with each character in the shift map that has "=" in the normal map.
>
>   Each supported keymap modifier combination is available.
>
>   The reason this is useful will soon become apparent.
>
>   A BList is used because the character might be mapped multiple times,
>   for example if you have a Mac keyboard you've got two "=" keys, one in
>   0x1d and one in 0x6a.
>
>   The caller is responsible for creating the BList and destroying it as well 
> as
>   freeing the resulting character strings.

I don't really get why the "=" comes into play here. I would search
for a "+" on a modifier and return the corresponding normal character
to be used on shortcut creation. Please explain.

Bye,
Jérôme

Other related posts: