From: H.G. Muller Date: Sat, 2 Mar 2013 21:17:31 +0000 (+0100) Subject: Fix GTK box popup X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=7e84512efd14c63c94e011315d7fbec2d1cbb384;p=xboard.git Fix GTK box popup Key values > 255 are used for PgUp, PgDown etc., so to pop up only on printables needs a two-sided test. --- diff --git a/gtk/xboard.c b/gtk/xboard.c index a1974ee..cf1b4e0 100644 --- a/gtk/xboard.c +++ b/gtk/xboard.c @@ -1694,7 +1694,7 @@ void MoveTypeInProc(eventkey) buf[0]=eventkey->keyval; buf[1]='\0'; - if (*buf >= 32) + if (eventkey->keyval > 32 && eventkey->keyval < 256) BoxAutoPopUp (buf); }