From: handa Date: Tue, 16 Mar 2004 06:51:41 +0000 (+0000) Subject: (mwin__parse_event): Fix previous change. X-Git-Tag: REL-1-0-1~11 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8481823ae0ec72cc0f88158282e7f7f4700d38fb;p=m17n%2Fm17n-lib.git (mwin__parse_event): Fix previous change. --- 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)