summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2016-09-01 12:56:25 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2016-09-01 12:56:25 (GMT)
commite263b25848f8b22d84eb0eb8c152bf603ac18130 (patch)
tree38d1a81b4e39e696ab0bd6f2757dbf6023054eed
parent783fa49262686e95a08babb596e530d5adcc1a7f (diff)
downloadtk-e263b25848f8b22d84eb0eb8c152bf603ac18130.zip
tk-e263b25848f8b22d84eb0eb8c152bf603ac18130.tar.gz
tk-e263b25848f8b22d84eb0eb8c152bf603ac18130.tar.bz2
don't forget to set the keycode ;-)
-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];
}