changeset 7706:44ff7a0a70b6

(x_is_vendor_fkey): Function deleted. (XTread_socket, case KeyPressed): Don't clear the vendor-specific bit. Pass thru almost any vendor-specific keysym.
author Richard M. Stallman <rms@gnu.org>
date Fri, 27 May 1994 22:18:39 +0000
parents b10cc49f6c37
children 8b0e81f12ac1
files src/xterm.c
diffstat 1 files changed, 2 insertions(+), 21 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Fri May 27 09:11:50 1994 +0000
+++ b/src/xterm.c	Fri May 27 22:18:39 1994 +0000
@@ -1919,22 +1919,6 @@
 	  | ((state & ctrl_modifier)		? ControlMask      : 0)
 	  | ((state & meta_modifier)		? x_meta_mod_mask  : 0));
 }
-
-/* Return true iff KEYSYM is a vendor-specific keysym that we should
-   return as a function key.  If you add a keysym to this, you should
-   make sure that the tables make_lispy_event uses contain a suitable
-   name for it.  */
-static int
-x_is_vendor_fkey (sym)
-     KeySym sym;
-{
-  return 0
-#ifdef DXK_Remove
-    || (sym == DXK_Remove)
-#endif
-      ;
-}
-
 
 /* Mouse clicks and mouse movement.  Rah.  */
 #ifdef HAVE_X11
@@ -3755,11 +3739,7 @@
 		XLookupString (&event.xkey, copy_buffer, 80, &keysym,
 			       &compose_status);
 
-	      /* Strip off the vendor-specific keysym bit, and take a shot
-		 at recognizing the codes.  HP servers have extra keysyms
-		 that fit into the MiscFunctionKey category.  */
 	      orig_keysym = keysym;
-	      keysym &= ~(1<<28);
 
 	      if (numchars > 1)
 		{
@@ -3816,7 +3796,8 @@
 #endif
 		       || IsKeypadKey (keysym) /* 0xff80 <= x < 0xffbe */
 		       || IsFunctionKey (keysym) /* 0xffbe <= x < 0xffe1 */
-		       || x_is_vendor_fkey (orig_keysym))
+		       /* Any "vendor-specific" key is ok.  */
+		       || (orig_keysym & (1 << 28)))
 		      && ! (IsModifierKey (orig_keysym)
 #ifndef HAVE_X11R5
 #ifdef XK_Mode_switch