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.
This commit is contained in:
Campbell Barton 2018-06-08 14:53:03 +02:00
parent fb1915d870
commit 4127aeb7a5
1 changed files with 3 additions and 0 deletions

View File

@ -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;