summaryrefslogtreecommitdiff
path: root/src/keymap.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1993-03-24 10:05:49 +0000
committerRichard M. Stallman <rms@gnu.org>1993-03-24 10:05:49 +0000
commit71ac885b6f75112439aa1ab680f80055ecfa76f7 (patch)
tree7467877d3b5517835490eeec3685de11c4db9f10 /src/keymap.c
parent7b7739b106f3995e4015fdb2068c2b75fd4709a6 (diff)
downloademacs-71ac885b6f75112439aa1ab680f80055ecfa76f7.tar.gz
(push_key_description): Ignore bits above meta_modifier.
Diffstat (limited to 'src/keymap.c')
-rw-r--r--src/keymap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/keymap.c b/src/keymap.c
index 11a48e2c235..2be4b81d841 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -1139,6 +1139,9 @@ push_key_description (c, p)
register unsigned int c;
register char *p;
{
+ /* Clear all the meaningless bits above the meta bit. */
+ c &= meta_modifier | ~ - meta_modifier;
+
if (c & alt_modifier)
{
*p++ = 'A';