summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2020-07-07 20:33:17 (GMT)
committerfvogel <fvogelnew1@free.fr>2020-07-07 20:33:17 (GMT)
commit885c5afec0135384958c33bab6774da2215f8bab (patch)
tree11423387156141638ddbc7de5e417c2cc767aab7 /unix
parentdb1b8a5882c70d2016d8f24c02bc8f70fa5eb155 (diff)
downloadtk-885c5afec0135384958c33bab6774da2215f8bab.zip
tk-885c5afec0135384958c33bab6774da2215f8bab.tar.gz
tk-885c5afec0135384958c33bab6774da2215f8bab.tar.bz2
Fix [09abd739b5]: bind-13.14 fails on Debian 10.
Diffstat (limited to 'unix')
-rw-r--r--unix/tkUnixKey.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/unix/tkUnixKey.c b/unix/tkUnixKey.c
index f6478ef..668be15 100644
--- a/unix/tkUnixKey.c
+++ b/unix/tkUnixKey.c
@@ -367,8 +367,18 @@ TkpGetKeySym(
index += 1;
}
- sym = TkKeycodeToKeysym(dispPtr, eventPtr->xkey.keycode, 0,
- index);
+ if (eventPtr->xkey.keycode > 0xff) {
+
+ /*
+ * X11 keycodes always lie in the inclusive range [8,255].
+ */
+
+ sym = NoSymbol;
+ return sym;
+ } else {
+ sym = TkKeycodeToKeysym(dispPtr, eventPtr->xkey.keycode, 0,
+ index);
+ }
/*
* Special handling: if the key was shifted because of Lock, but lock is