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:
@@ -1743,6 +1743,9 @@ convertXKey(KeySym key)
|
|||||||
GXMAP(type, XF86XK_AudioForward, GHOST_kKeyMediaLast);
|
GXMAP(type, XF86XK_AudioForward, GHOST_kKeyMediaLast);
|
||||||
#endif
|
#endif
|
||||||
#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:
|
default:
|
||||||
type = GHOST_kKeyUnknown;
|
type = GHOST_kKeyUnknown;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user