From 7e84512efd14c63c94e011315d7fbec2d1cbb384 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sat, 2 Mar 2013 22:17:31 +0100 Subject: [PATCH] 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. --- gtk/xboard.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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); } -- 1.7.0.4