summaryrefslogtreecommitdiffstats
path: root/win
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)
commita31e2babe597336a3c0c0dce7a3ebb8686c7e1e0 (patch)
tree38d1a81b4e39e696ab0bd6f2757dbf6023054eed /win
parent7d1b9612ad04e7e35d6443d6e9b0e4053b801427 (diff)
downloadtk-a31e2babe597336a3c0c0dce7a3ebb8686c7e1e0.zip
tk-a31e2babe597336a3c0c0dce7a3ebb8686c7e1e0.tar.gz
tk-a31e2babe597336a3c0c0dce7a3ebb8686c7e1e0.tar.bz2
don't forget to set the keycode ;-)
Diffstat (limited to 'win')
-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];
}