summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <jan.nijtmans@noemail.net>2016-09-01 12:56:25 (GMT)
committerjan.nijtmans <jan.nijtmans@noemail.net>2016-09-01 12:56:25 (GMT)
commit812b81e33f1524497899bc7c49c965b638d6072e (patch)
tree38d1a81b4e39e696ab0bd6f2757dbf6023054eed
parenta3713274a99ec9398da9c5f6cda99730ead59bbf (diff)
downloadtk-812b81e33f1524497899bc7c49c965b638d6072e.zip
tk-812b81e33f1524497899bc7c49c965b638d6072e.tar.gz
tk-812b81e33f1524497899bc7c49c965b638d6072e.tar.bz2
don't forget to set the keycode ;-)
FossilOrigin-Name: 5dc350ba1e951e286abe298c1609e38f2d6b90b8
-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];
}