Commit 402b843f authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

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



Signed-off-by: Benno Schulenberg's avatarBenno Schulenberg <bensberg@telfort.nl>
parent fbbc3cf8
Pipeline #494118 passed with stages
in 9 minutes and 20 seconds
......@@ -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)) {
......
......@@ -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) ||
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment