diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2022-02-26 23:42:19 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2022-02-26 23:56:17 +0300 |
commit | 4ee4b61dd8d372358606441f450df02a6e27d563 (patch) | |
tree | eb0f6f0ca28bf1d5ad79f5bcb2f409c14d5608f6 /source/blender/draw | |
parent | 7aa0be4b32bdbee61ea732f43175c8bc6585fc98 (diff) |
Ghost/Event System: Support mapping more keys
This fixes T93051, T76405 and maybe others.
Characters like '²', '<' are not recognized in Blender's shortcut keys.
And sometimes simple buttons like {key .} and {key /} on the Windows
keyboard, although the symbol is "known", Blender also doesn't
detect for shortcuts.
For Windows, some of the symbols represented by `VK_OEM_[1-8]` values,
depending on the language, are not mapped by Blender.
On Mac there is a fallback reading the "actual character value of the
'remappable' keys". But sometimes the character is not mapped either.
On Windows, the solution now mimics the Mac and tries to read the button's
character as a fallback.
For unmapped characters ('²', '<', '\''), now another value is chosen as a
substitute.
More "substitutes" may be added over time.
Differential Revision: https://developer.blender.org/D14149
Diffstat (limited to 'source/blender/draw')
0 files changed, 0 insertions, 0 deletions