Page MenuHome

Fix T65532 can't assign some keys on apple keyboards
Needs RevisionPublic

Authored by Yevgeny Makarov (jenkm) on Wed, Dec 25, 2:47 PM.

Details

Summary

Fix T65532 can't assign some keys on apple keyboards.

There are two types of apple keyboards "US English" (ANSI type) and "International English" (ISO type).

All non-english keyboards are also ISO type.
https://www.apple.com/ie/shop/product/MLA22Z/A/magic-keyboard-international-english

In the case of the ISO, the tilde/accent-grave key is located to the left of Z key.
To the left of 1 is an additional kVK_ISO_Section key, which is currently set as "unknown".
This patch makes it possible to use this key.

The same can also be done for the kVK_ANSI_KeypadClear key.

Diff Detail

Repository
rB Blender

Event Timeline

Campbell Barton (campbellbarton) requested changes to this revision.EditedThu, Dec 26, 12:36 PM

*Edit*, we might want to consider how to handle adding keys from non english keyboards, since if we start doing this.

  • We can probably add many others.
  • What are the implications for the default keymap.

This raises the general question, is it expected that we will expose all keys for all languages, or do we keep a limited sub-set (as we have been doing).

Would prefer to handle this as a design task.

This revision now requires changes to proceed.Thu, Dec 26, 12:36 PM

In this particular case we are talking about the English keyboard and layout, there are two versions, "US English" and "International English".
The "International English" (keyboard type ISO) has one more key than the "US English" (keyboard type ANSI).

This key is located in a very convenient place, but currently it can not be used in custom keymaps. (I don't suggest using it in the default keymaps.)

I'd even say that only a "US English" keyboard doesn't have that key, while everyone else, including the "British English" one, has it. So here US keyboard is an exception.