changeset 3692:589aaa4a815b

* xfns.c [! HAVE_X11R5] (Fx_rebind_key): Recognize that XK_Mode_switch and XK_Num_Lock are modifier keysyms too.
author Jim Blandy <jimb@redhat.com>
date Sat, 12 Jun 1993 17:23:13 +0000
parents 49ce2242f5c1
children 8e83f20d0e39
files src/xfns.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Sat Jun 12 17:17:05 1993 +0000
+++ b/src/xfns.c	Sat Jun 12 17:23:13 1993 +0000
@@ -3353,8 +3353,15 @@
 	  mod = Fcar (rest);
 	  CHECK_STRING (mod, 3);
 	  modifier_list[i] = XStringToKeysym ((char *) XSTRING (mod)->data);
+#ifndef HAVE_X11R5
+	  if (modifier_list[i] == NoSymbol
+	      || !(IsModifierKey (modifier_list[i]) 
+                   || ((unsigned)(modifier_list[i]) == XK_Mode_switch)
+                   || ((unsigned)(modifier_list[i]) == XK_Num_Lock)))
+#else
 	  if (modifier_list[i] == NoSymbol
 	      || !IsModifierKey (modifier_list[i]))
+#endif
 	    error ("Element is not a modifier keysym");
 	  i++;
 	}