From: handa Date: Tue, 12 Oct 2004 12:17:49 +0000 (+0000) Subject: (mwin__parse_event): Fix for non-ASCII keys. X-Git-Tag: REL-1-2-0~128 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d49a014ebb8a4a5e16d07d21a7af2ab7b16b962;p=m17n%2Fm17n-lib.git (mwin__parse_event): Fix for non-ASCII keys. --- diff --git a/src/m17n-X.c b/src/m17n-X.c index 376b12a..dbaf6f2 100644 --- a/src/m17n-X.c +++ b/src/m17n-X.c @@ -1744,7 +1744,7 @@ mwin__parse_event (MFrame *frame, void *arg, int *modifiers) int len; char buf[512]; KeySym keysym; - MSymbol key; + MSymbol key = Mnil; *modifiers = 0; if (event->xany.type != KeyPress @@ -1773,7 +1773,7 @@ mwin__parse_event (MFrame *frame, void *arg, int *modifiers) } else if (keysym >= XK_Shift_L && keysym <= XK_Hyper_R) return Mnil; - else + if (key == Mnil) { char *str = XKeysymToString (keysym);