GHOST/X11: Map unknown es,dk keys to accentgrave

This commit is contained in:
Campbell Barton 2018-06-08 15:21:20 +02:00
parent 4127aeb7a5
commit 540e85d567
1 changed files with 5 additions and 0 deletions

View File

@ -1745,8 +1745,13 @@ convertXKey(KeySym key)
#endif
/* Non US keyboard layouts: avoid 'UnknownKey' - TODO(campbell): lookup scan-codes. */
GXMAP(type, XK_dead_circumflex, GHOST_kKeyAccentGrave); /* 'de' */
GXMAP(type, XK_masculine, GHOST_kKeyAccentGrave); /* 'es' */
GXMAP(type, XK_onehalf, GHOST_kKeyAccentGrave); /* 'dk' */
GXMAP(type, XK_twosuperior, GHOST_kKeyAccentGrave); /* 'fr' */
default:
#ifdef GHOST_DEBUG
printf("%s: unknown key: %lu / 0x%lx\n", __func__, key, key);
#endif
type = GHOST_kKeyUnknown;
break;
}