summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-03-12 20:01:47 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-03-12 20:01:47 +0000
commit2d770e946ad85e5891a9696e7d0de43947b0179d (patch)
tree5fe1a41d22886e5b02159ab497dac75c82b39a9c /modules
parent7c59491ce4a423bc8706eaf55a7c803216ccdf2b (diff)
downloadgtk+-2d770e946ad85e5891a9696e7d0de43947b0179d.tar.gz
Fix incorrect return value, filter out returns of 0x7f for the delete key.
Tue Mar 12 10:50:09 2002 Owen Taylor <otaylor@redhat.com> * modules/input/gtkimcontextxim.c (gtk_im_context_xim_filter_keypress): Fix incorrect return value, filter out returns of 0x7f for the delete key. (#74179, Kang Jeong-He)
Diffstat (limited to 'modules')
-rw-r--r--modules/input/gtkimcontextxim.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/input/gtkimcontextxim.c b/modules/input/gtkimcontextxim.c
index ec7565aeef..a76b667de1 100644
--- a/modules/input/gtkimcontextxim.c
+++ b/modules/input/gtkimcontextxim.c
@@ -379,9 +379,10 @@ gtk_im_context_xim_filter_keypress (GtkIMContext *context,
result_utf8 = mb_to_utf8 (context_xim, buffer);
if (result_utf8)
{
- if ((guchar)result_utf8[0] >= 0x20) /* Some IM have a nasty habit of converting
- * control characters into strings
- */
+ if ((guchar)result_utf8[0] >= 0x20 &&
+ result_utf8[0] != 0x7f) /* Some IM have a nasty habit of converting
+ * control characters into strings
+ */
{
g_signal_emit_by_name (context, "commit", result_utf8);
result = TRUE;
@@ -391,7 +392,7 @@ gtk_im_context_xim_filter_keypress (GtkIMContext *context,
}
}
- return FALSE;
+ return result;
}
static void