From 2d49a014ebb8a4a5e16d07d21a7af2ab7b16b962 Mon Sep 17 00:00:00 2001 From: handa Date: Tue, 12 Oct 2004 12:17:49 +0000 Subject: [PATCH] (mwin__parse_event): Fix for non-ASCII keys. --- src/m17n-X.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 1.7.10.4