deriving a keysym or text to insert.
Otherwise, if the XKB extension is available, calls
- are made to XkbLookupKeycode and XkbTranslateKeysym.
+ are made to XkbTranslateKeyCode and
+ XkbTranslateKeySym.
And if all else fails, XEV is transformed into a core
event and provided to XLookupString, in a manner
goto xi_done_keysym;
/* Save the original keysym in case
- XkbTranslateKeysym overflows. */
+ XkbTranslateKeySym overflows. */
sym = keysym, overflow = 0;
/* Translate this keysym and its modifier
XkbNewKeyboardNotifyMask | XkbMapNotifyMask,
XkbNewKeyboardNotifyMask | XkbMapNotifyMask);
}
-#endif
+
+ /* XFree86 extends XKBlib with a new Xlib control `ControlFallback',
+ which enables a search for symbols designating ASCII characters
+ within inactive groups during keycode translation when
+ ControlMask is set. Users find this behavior gratuitous, so
+ disable it if present. */
+
+#ifdef XkbLC_ControlFallback
+ XkbSetXlibControls (dpyinfo->display, XkbLC_ControlFallback, 0);
+#endif /* XkbLC_ControlFallback */
+#endif /* HAVE_XKB */
#ifdef HAVE_XFIXES
int xfixes_error_base;