From 8481823ae0ec72cc0f88158282e7f7f4700d38fb Mon Sep 17 00:00:00 2001 From: handa Date: Tue, 16 Mar 2004 06:51:41 +0000 Subject: [PATCH] (mwin__parse_event): Fix previous change. --- src/m17n-X.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/m17n-X.c b/src/m17n-X.c index 235d81a..28654c5 100644 --- a/src/m17n-X.c +++ b/src/m17n-X.c @@ -1985,8 +1985,13 @@ mwin__parse_event (MFrame *frame, void *arg, int *modifiers) c = buf[0]; if ((c == ' ' || c == 127) && ((XKeyEvent *) event)->state & ShiftMask) *modifiers |= MINPUT_KEY_SHIFT_MODIFIER; - if ((c >= ' ' && c < 127) && ((XKeyEvent *) event)->state & ControlMask) - *modifiers |= MINPUT_KEY_CONTROL_MODIFIER; + if (((XKeyEvent *) event)->state & ControlMask) + { + if (c >= 'a' && c <= 'z') + c += 'A' - 'a'; + if (c >= ' ' && c < 127) + *modifiers |= MINPUT_KEY_CONTROL_MODIFIER; + } key = minput__char_to_key (c); } else if (keysym >= XK_Shift_L && keysym <= XK_Hyper_R) -- 1.7.10.4