1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-13 09:32:47 +00:00

* xfns.c [! HAVE_X11R5] (Fx_rebind_key): Recognize that

XK_Mode_switch and XK_Num_Lock are modifier keysyms too.
This commit is contained in:
Jim Blandy 1993-06-12 17:23:13 +00:00
parent 81fa9e2f86
commit fb35103948

View File

@ -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++;
}