changeset 4558:bd83da57b726

(make_lispy_event): Clear all but 0377 in event->code.
author Richard M. Stallman <rms@gnu.org>
date Wed, 11 Aug 1993 07:56:40 +0000
parents bc281eb57c68
children 521dc133f58b
files src/keyboard.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Wed Aug 11 07:27:10 1993 +0000
+++ b/src/keyboard.c	Wed Aug 11 07:56:40 1993 +0000
@@ -2234,7 +2234,7 @@
       /* A simple keystroke.  */
     case ascii_keystroke:
       {
-	int c = XFASTINT (event->code);
+	int c = XFASTINT (event->code) & 0377;
 	/* Turn ASCII characters into control characters
 	   when proper.  */
 	if (event->modifiers & ctrl_modifier)