projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
d25f268
)
Fix GTK box popup
author
H.G. Muller
<h.g.muller@hccnet.nl>
Sat, 2 Mar 2013 21:17:31 +0000 (22:17 +0100)
committer
H.G. Muller
<h.g.muller@hccnet.nl>
Thu, 2 May 2013 12:54:30 +0000 (14:54 +0200)
Key values > 255 are used for PgUp, PgDown etc., so to pop up only on
printables needs a two-sided test.
gtk/xboard.c
patch
|
blob
|
history
diff --git
a/gtk/xboard.c
b/gtk/xboard.c
index
a1974ee
..
cf1b4e0
100644
(file)
--- 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);
}