diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-10-10 14:25:36 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-10-10 14:25:36 (GMT) |
commit | 6477bb91460d01e185a152d6be44bfd9d1d7362e (patch) | |
tree | 8248550af60aebe2b02622189960443575dfd1bb /generic | |
parent | 56de2058b0be5410f7b9f6c913c1a70b418137a6 (diff) | |
download | tk-6477bb91460d01e185a152d6be44bfd9d1d7362e.zip tk-6477bb91460d01e185a152d6be44bfd9d1d7362e.tar.gz tk-6477bb91460d01e185a152d6be44bfd9d1d7362e.tar.bz2 |
Fix bind-13.14 test-case on (e.g.) some 32-bit Linux, which considers -1 a valid KeySym somehow
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkBind.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tkBind.c b/generic/tkBind.c index 08b322f..4684ce7 100644 --- a/generic/tkBind.c +++ b/generic/tkBind.c @@ -5221,7 +5221,9 @@ TkKeysymToString( return Tcl_GetHashValue(hPtr); } #endif /* REDO_KEYSYM_LOOKUP */ - + if (keysym > (KeySym)0x10FFFF) { + return NULL; + } return XKeysymToString(keysym); } |