summaryrefslogtreecommitdiffstats
path: root/win/tkWinKey.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2006-08-30 21:53:46 (GMT)
committerhobbs <hobbs>2006-08-30 21:53:46 (GMT)
commitc205e2f533cdd989f00a0c10dcec801c3e6ad6dc (patch)
tree65a32d7bbafd725faa8019ffcd23a0ce89ccc737 /win/tkWinKey.c
parent7f475d7962d8fe7ea9f615f3b14b92de1ddef483 (diff)
downloadtk-c205e2f533cdd989f00a0c10dcec801c3e6ad6dc.zip
tk-c205e2f533cdd989f00a0c10dcec801c3e6ad6dc.tar.gz
tk-c205e2f533cdd989f00a0c10dcec801c3e6ad6dc.tar.bz2
* win/tkWinKey.c: Add WM_UNICHAR window message support (used by
* win/tkWinX.c: virtual keyboard apps). [Bug 1518677] (petasis)
Diffstat (limited to 'win/tkWinKey.c')
-rw-r--r--win/tkWinKey.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/win/tkWinKey.c b/win/tkWinKey.c
index 7f5a338..a7a973d 100644
--- a/win/tkWinKey.c
+++ b/win/tkWinKey.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWinKey.c,v 1.14 2001/05/30 22:41:11 hobbs Exp $
+ * RCS: @(#) $Id: tkWinKey.c,v 1.14.4.1 2006/08/30 21:53:46 hobbs Exp $
*/
#include "tkWinInt.h"
@@ -112,6 +112,13 @@ TkpGetString(winPtr, eventPtr, dsPtr)
len = Tcl_UniCharToUtf((Tcl_UniChar) unichar, buf);
Tcl_DStringAppend(dsPtr, buf, len);
+ } else if (eventPtr->xkey.send_event == -3) {
+ /*
+ * Special case for WM_UNICHAR.
+ * xkey.trans_chars[] already contains a UTF-8 char.
+ */
+ Tcl_DStringAppend(dsPtr, eventPtr->xkey.trans_chars,
+ eventPtr->xkey.nbytes);
} else {
/*
* This is an event generated from generic code. It has no