Commit 2e3b94e7 authored by Richard M. Stallman's avatar Richard M. Stallman

(make_lispy_event): Clear all but 0377 in event->code.

parent 6c5c8bbe
......@@ -2234,7 +2234,7 @@ make_lispy_event (event)
/* 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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment