changeset 4244:bc70363458c3

(XTread_socket) [! HAVE_X11R5]: Check for XK_Mode_switch and XK_Num_Lock, if defined.
author Richard M. Stallman <rms@gnu.org>
date Fri, 23 Jul 1993 08:04:52 +0000
parents 23fe7f6c9ae4
children 5988aab467cc
files src/xterm.c
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Fri Jul 23 07:59:08 1993 +0000
+++ b/src/xterm.c	Fri Jul 23 08:04:52 1993 +0000
@@ -2940,7 +2940,16 @@
 		       || IsKeypadKey (keysym) /* 0xff80 <= x < 0xffbe */
 		       || IsFunctionKey (keysym) /* 0xffbe <= x < 0xffe1 */
 		       || x_is_vendor_fkey (orig_keysym))
-		      && ! IsModifierKey (orig_keysym)) /* wherever */
+		      && ! (IsModifierKey (orig_keysym)
+#ifndef HAVE_X11R5
+#ifdef XK_Mode_switch
+			    || ((unsigned)(orig_keysym) == XK_Mode_switch)
+#endif
+#ifdef XK_Num_Lock
+			    || ((unsigned)(orig_keysym) == XK_Num_Lock)
+#endif
+#endif /* not HAVE_X11R5 */
+			    ))
 		    {
 		      if (temp_index == sizeof temp_buffer / sizeof (short))
 			temp_index = 0;