mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-08 09:08:18 +02:00
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:
parent
fbbc3cf8b8
commit
402b843fa7
2 changed files with 1 additions and 4 deletions
|
|
@ -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) ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue