Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-06-08 15:53:03 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-06-08 15:53:03 +0300
commit4127aeb7a5da5eeff8d6278b94f6302187ab0264 (patch)
treef8304d76b84f09240d0041698400da35d1c55ddd /intern/ghost
parentfb1915d87090a120233ad58b59b953e674e21208 (diff)
GHOST/X11: Map unknown de,fr keys to accentgrave
This still uses the correct string when typing text, it just allows the key to be used in keymaps. We should eventually add scan-code support.
Diffstat (limited to 'intern/ghost')
-rw-r--r--intern/ghost/intern/GHOST_SystemX11.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/ghost/intern/GHOST_SystemX11.cpp b/intern/ghost/intern/GHOST_SystemX11.cpp
index 62befc2f227..cecfeee134d 100644
--- a/intern/ghost/intern/GHOST_SystemX11.cpp
+++ b/intern/ghost/intern/GHOST_SystemX11.cpp
@@ -1743,6 +1743,9 @@ convertXKey(KeySym key)
GXMAP(type, XF86XK_AudioForward, GHOST_kKeyMediaLast);
#endif
#endif
+ /* Non US keyboard layouts: avoid 'UnknownKey' - TODO(campbell): lookup scan-codes. */
+ GXMAP(type, XK_dead_circumflex, GHOST_kKeyAccentGrave); /* 'de' */
+ GXMAP(type, XK_twosuperior, GHOST_kKeyAccentGrave); /* 'fr' */
default:
type = GHOST_kKeyUnknown;
break;