summaryrefslogtreecommitdiff
path: root/gtk/gtkimcontextsimple.c
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2011-03-16 19:04:20 -0400
committerJasper St. Pierre <jstpierre@mecheye.net>2011-03-16 20:09:14 -0400
commitff9eb56c6e2d1c98fff6de2c6d4a0d1836682302 (patch)
tree3af4a081df0753cc70451063762b916cec4e873d /gtk/gtkimcontextsimple.c
parent6ecfddf2e245ecc8152bdf8d86ed5b4091f89fc6 (diff)
downloadgtk+-ff9eb56c6e2d1c98fff6de2c6d4a0d1836682302.tar.gz
Don't only use ch != 0 to check if a character is a control char.
https://bugzilla.gnome.org/show_bug.cgi?id=644976
Diffstat (limited to 'gtk/gtkimcontextsimple.c')
-rw-r--r--gtk/gtkimcontextsimple.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkimcontextsimple.c b/gtk/gtkimcontextsimple.c
index a68886f9a9..68f7578363 100644
--- a/gtk/gtkimcontextsimple.c
+++ b/gtk/gtkimcontextsimple.c
@@ -746,7 +746,7 @@ no_sequence_matches (GtkIMContextSimple *context_simple,
}
ch = gdk_keyval_to_unicode (event->keyval);
- if (ch != 0)
+ if (ch != 0 && !g_unichar_iscntrl (ch))
{
gtk_im_context_simple_commit_char (context, ch);
return TRUE;