summaryrefslogtreecommitdiffstats
path: root/win/tkWinKey.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-09-27 14:41:50 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-09-27 14:41:50 (GMT)
commit506ee2fc81bb27e237860565c11a1494ab8c7b38 (patch)
tree2abcb2e36b86027465dc94601ba1fdb1f2506cbf /win/tkWinKey.c
parent8480a73fc23b0812d1681db23c634c3555e8d263 (diff)
downloadtk-506ee2fc81bb27e237860565c11a1494ab8c7b38.zip
tk-506ee2fc81bb27e237860565c11a1494ab8c7b38.tar.gz
tk-506ee2fc81bb27e237860565c11a1494ab8c7b38.tar.bz2
Internal code simplification: Store Unicode character in keycode field in stead of trans_chars. No behavior change, just use a different internal event type.
Diffstat (limited to 'win/tkWinKey.c')
-rw-r--r--win/tkWinKey.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/win/tkWinKey.c b/win/tkWinKey.c
index a567653..89b5d29 100644
--- a/win/tkWinKey.c
+++ b/win/tkWinKey.c
@@ -97,21 +97,6 @@ TkpGetString(
Tcl_ExternalToUtfDString(TkWinGetKeyInputEncoding(),
keyEv->trans_chars, keyEv->nbytes, dsPtr);
}
- } else if (keyEv->send_event == -2) {
- /*
- * Special case for win2000 multi-lingal IME input. xkey.trans_chars[]
- * already contains a UNICODE char.
- */
-
- int unichar;
-
- unichar = keyEv->trans_chars[1] & 0xff;
- unichar <<= 8;
- unichar |= keyEv->trans_chars[0] & 0xff;
-
- len = Tcl_UniCharToUtf((Tcl_UniChar) unichar, buf);
-
- Tcl_DStringAppend(dsPtr, buf, len);
} else if (keyEv->send_event == -3) {
/*