summaryrefslogtreecommitdiffstats
path: root/unix/tkUnixKey.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2020-03-04 12:24:08 (GMT)
committerfvogel <fvogelnew1@free.fr>2020-03-04 12:24:08 (GMT)
commit3cc748dc86a2c3c813e2c7d9409a58e9a239d9c8 (patch)
tree238117c0a1fb24be08da9b2a586ead4d172f44ca /unix/tkUnixKey.c
parent5931b9b61e7df9c4fe0a28265d9ffd7e1c73f874 (diff)
parenta32c08daeccda43a3dda2be7a91715a79e1e83e7 (diff)
downloadtk-3cc748dc86a2c3c813e2c7d9409a58e9a239d9c8.zip
tk-3cc748dc86a2c3c813e2c7d9409a58e9a239d9c8.tar.gz
tk-3cc748dc86a2c3c813e2c7d9409a58e9a239d9c8.tar.bz2
Finalize the fix for ticket [382712ade65] (X11: 'event generate . <KeyPress>' segfault) by documenting the leftover consequence of the fix.
Diffstat (limited to 'unix/tkUnixKey.c')
-rw-r--r--unix/tkUnixKey.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/unix/tkUnixKey.c b/unix/tkUnixKey.c
index 89e8d0a..7d29ee6 100644
--- a/unix/tkUnixKey.c
+++ b/unix/tkUnixKey.c
@@ -138,8 +138,7 @@ TkpGetString(
#ifdef TK_USE_INPUT_METHODS
if ((winPtr->dispPtr->flags & TK_DISPLAY_USE_IM)
- && (winPtr->inputContext != NULL)
- && (eventPtr->type == KeyPress)) {
+ && (winPtr->inputContext != NULL)) {
Status status;
#if X_HAVE_UTF8_STRING
@@ -194,8 +193,7 @@ TkpGetString(
{
/*
* Fall back to convert a keyboard event to a UTF-8 string using
- * XLookupString. This is used when input methods are turned off and
- * for KeyRelease events.
+ * XLookupString. This is used when input methods are turned off.
*
* Note: XLookupString() normally returns a single ISO Latin 1 or
* ASCII control character.