remove a commented-out code fragment, and remove a stray blank line

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
This commit is contained in:
Benno Schulenberg 2022-01-26 17:20:28 +01:00
parent fbbc3cf8b8
commit 402b843fa7
2 changed files with 1 additions and 4 deletions

View file

@ -903,13 +903,11 @@ XThaiTranslateKeySym(
/* if X keysym, convert to ascii by grabbing low 7 bits */
if (symbol == XK_KP_Space)
c = XK_space & 0x7F; /* patch encoding botch */
/* not for Thai
else if (symbol == XK_hyphen)
c = XK_minus & 0xFF; */ /* map to equiv character */
else if (hiBytes == 0xFF)
c = symbol & 0x7F;
else
c = symbol & 0xFF;
/* only apply Control key if it makes sense, else ignore it */
if (modifiers & ControlMask) {
if (!(IsKeypadKey(lsym) || lsym==XK_Return || lsym==XK_Tab)) {

View file

@ -57,7 +57,6 @@ from The Open Group.
static int
_XkbHandleSpecialSym(KeySym keysym, char *buffer, int nbytes, int *extra_rtrn)
{
/* try to convert to Latin-1, handling ctrl */
if (!(((keysym >= XK_BackSpace) && (keysym <= XK_Clear)) ||
(keysym == XK_Return) || (keysym == XK_Escape) ||