aboutsummaryrefslogtreecommitdiffstats
path: root/src/xfns.c
diff options
context:
space:
mode:
authorJim Blandy <[email protected]>1993-06-12 17:23:13 +0000
committerJim Blandy <[email protected]>1993-06-12 17:23:13 +0000
commitfb351039483a30f8c5c666cf9df7066d35ac0bd8 (patch)
treed621d73100b1987ea2fb182938c86705b4686040 /src/xfns.c
parent81fa9e2f86d68b5a5a9c3e6373837bca34047496 (diff)
* xfns.c [! HAVE_X11R5] (Fx_rebind_key): Recognize that
XK_Mode_switch and XK_Num_Lock are modifier keysyms too.
Diffstat (limited to 'src/xfns.c')
-rw-r--r--src/xfns.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 6b1eb465b2..3d5d07e28a 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -3353,8 +3353,15 @@ also be depressed for NEWSTRING to appear.")
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++;
}