summaryrefslogtreecommitdiffstats
path: root/win/tkWinX.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-09-01 12:56:25 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-09-01 12:56:25 (GMT)
commit5bfb6d6fc431a9a9cf19335ed95bc09dd3698fb4 (patch)
tree38d1a81b4e39e696ab0bd6f2757dbf6023054eed /win/tkWinX.c
parent52fcc0939f7809c3234212ef5fdff0359767d4f7 (diff)
downloadtk-5bfb6d6fc431a9a9cf19335ed95bc09dd3698fb4.zip
tk-5bfb6d6fc431a9a9cf19335ed95bc09dd3698fb4.tar.gz
tk-5bfb6d6fc431a9a9cf19335ed95bc09dd3698fb4.tar.bz2
don't forget to set the keycode ;-)
Diffstat (limited to 'win/tkWinX.c')
-rw-r--r--win/tkWinX.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/win/tkWinX.c b/win/tkWinX.c
index f4908e0..e8715b3 100644
--- a/win/tkWinX.c
+++ b/win/tkWinX.c
@@ -1225,6 +1225,7 @@ GenerateXEvent(
event.xany.send_event = -3;
event.xkey.nbytes = Tcl_UniCharToUtf(ch1, buffer);
if ((ch1 <= 0xffff) || (event.xkey.nbytes == XMaxTransChars)) {
+ event.xkey.keycode = ch1;
for (i=0; i<event.xkey.nbytes && i<XMaxTransChars; ++i) {
event.xkey.trans_chars[i] = buffer[i];
}