(XTread_socket, case KeyPress) [HPUX]:
authorRichard M. Stallman <rms@gnu.org>
Fri, 28 May 1993 21:13:59 +0000 (21:13 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 28 May 1993 21:13:59 +0000 (21:13 +0000)
Recognize the extended function keys.

src/xterm.c

index 7c6fee0..033b1da 100644 (file)
@@ -2874,6 +2874,12 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
                      || keysym == XK_Delete
                      || IsCursorKey (keysym)       /* 0xff50 <= x < 0xff60 */
                      || IsMiscFunctionKey (keysym) /* 0xff60 <= x < 0xff80 */
+#ifdef HPUX
+                     /* This recognizes the "extended function keys".
+                        It seems there's no cleaner way.  */
+                     || ((unsigned) (keysym) >= XK_Select
+                         && (unsigned)(keysym) < XK_KP_Space)
+#endif
                      || IsKeypadKey (keysym)       /* 0xff80 <= x < 0xffbe */
                      || IsFunctionKey (keysym))    /* 0xffbe <= x < 0xffe1 */
                    {