From 398b666f479a3fdb709d735a664ecfcf0b91e2d7 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 20 Nov 1993 05:17:44 +0000 Subject: [PATCH] (follow_key): When downcasing, downcase just the basic part of the character, and preserve the modifier bits. --- src/keyboard.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/keyboard.c b/src/keyboard.c index e79c64bfd55..e7e58365491 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -3659,7 +3659,8 @@ follow_key (key, nmaps, current, defs, next) if (XINT (key) & shift_modifier) XSETINT (key, XINT (key) & ~shift_modifier); else - XSETINT (key, DOWNCASE (XINT (key))); + XSETINT (key, (DOWNCASE (XINT (key) & 0x3ffff) + | (XINT (key) & ~0x3ffff))); first_binding = nmaps; for (i = nmaps - 1; i >= 0; i--) -- 2.39.5