summaryrefslogtreecommitdiffstats
path: root/win/tkWinKey.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2006-08-30 21:55:51 (GMT)
committerhobbs <hobbs>2006-08-30 21:55:51 (GMT)
commit94edca83e594d771323cb9f0b5a4e1e0d03d8dc5 (patch)
treeab3b85ab817293966daf56abb9d0c1a3a41105a7 /win/tkWinKey.c
parent86610663094570936526ba513660875c9794532e (diff)
downloadtk-94edca83e594d771323cb9f0b5a4e1e0d03d8dc5.zip
tk-94edca83e594d771323cb9f0b5a4e1e0d03d8dc5.tar.gz
tk-94edca83e594d771323cb9f0b5a4e1e0d03d8dc5.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 22e5dd9..7df78e1 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.16 2005/12/02 13:42:29 dkf Exp $
+ * RCS: @(#) $Id: tkWinKey.c,v 1.17 2006/08/30 21:55:51 hobbs Exp $
*/
#include "tkWinInt.h"
@@ -115,6 +115,13 @@ TkpGetString(
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 nchars or