# HG changeset patch # User Jim Blandy # Date 740523698 0 # Node ID 3cc238ae0de59907b3ce60cd7d43cb08a4c4ed66 # Parent 6d8422d990003c035e1cc0d2864bac1babe10f13 * xterm.c (XTread_socket): Never treat a modifier key as a non_ascii_keystroke. diff -r 6d8422d99000 -r 3cc238ae0de5 src/xterm.c --- a/src/xterm.c Sat Jun 19 20:35:26 1993 +0000 +++ b/src/xterm.c Sat Jun 19 21:01:38 1993 +0000 @@ -2893,22 +2893,22 @@ if (numchars > 1) { - if ((keysym >= XK_BackSpace && keysym <= XK_Escape) - || keysym == XK_Delete - || IsCursorKey (keysym) /* 0xff50 <= x < 0xff60 */ - || IsMiscFunctionKey (keysym) /* 0xff60 <= x < VARIES */ + if (((keysym >= XK_BackSpace && keysym <= XK_Escape) + || keysym == XK_Delete + || IsCursorKey (keysym) /* 0xff50 <= x < 0xff60 */ + || IsMiscFunctionKey (keysym) /* 0xff60 <= x < VARIES */ #ifdef HPUX - /* This recognizes the "extended function keys". - It seems there's no cleaner way. - Test IsModifierKey to avoid handling mode_switch - incorrectly. */ - || (!IsModifierKey (orig_keysym) - && (unsigned) (keysym) >= XK_Select - && (unsigned)(keysym) < XK_KP_Space) + /* This recognizes the "extended function keys". + It seems there's no cleaner way. + Test IsModifierKey to avoid handling mode_switch + incorrectly. */ + || ((unsigned) (keysym) >= XK_Select + && (unsigned)(keysym) < XK_KP_Space) #endif - || IsKeypadKey (keysym) /* 0xff80 <= x < 0xffbe */ - || IsFunctionKey (keysym) /* 0xffbe <= x < 0xffe1 */ - || x_is_vendor_fkey (orig_keysym)) /* wherever */ + || IsKeypadKey (keysym) /* 0xff80 <= x < 0xffbe */ + || IsFunctionKey (keysym) /* 0xffbe <= x < 0xffe1 */ + || x_is_vendor_fkey (orig_keysym)) + && ! IsModifierKey (orig_keysym)) /* wherever */ { if (temp_index == sizeof temp_buffer / sizeof (short)) temp_index = 0;