changeset 5078:698acfd3faa3

(follow_key): When downcasing, downcase just the basic part of the character, and preserve the modifier bits.
author Richard M. Stallman <rms@gnu.org>
date Sat, 20 Nov 1993 05:17:44 +0000
parents a928c879b7ea
children 1d253bc912d8
files src/keyboard.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Sat Nov 20 04:14:34 1993 +0000
+++ b/src/keyboard.c	Sat Nov 20 05:17:44 1993 +0000
@@ -3659,7 +3659,8 @@
       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--)