diff options
author | Matthias Clasen <mclasen@redhat.com> | 2004-12-06 05:21:39 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-12-06 05:21:39 +0000 |
commit | a1178ee76dc726cd141ce91f764d43da476cdfb0 (patch) | |
tree | ecca5ef2272085457c346020f1a0f722b19d181b /modules | |
parent | 67643f6f4baa8344e0fc2f9f525caa271904ac55 (diff) | |
download | gtk+-a1178ee76dc726cd141ce91f764d43da476cdfb0.tar.gz |
Prevent double commits, don't commit when Ctrl is present. (#160376,
2004-12-06 Matthias Clasen <mclasen@redhat.com>
* modules/input/gtkimcontextime.c: Prevent double commits,
don't commit when Ctrl is present. (#160376, Kazuki IWAMOTO)
Diffstat (limited to 'modules')
-rw-r--r-- | modules/input/gtkimcontextime.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/input/gtkimcontextime.c b/modules/input/gtkimcontextime.c index da10077d83..833cf160b5 100644 --- a/modules/input/gtkimcontextime.c +++ b/modules/input/gtkimcontextime.c @@ -312,6 +312,9 @@ gtk_im_context_ime_filter_keypress (GtkIMContext *context, if (event->type == GDK_KEY_RELEASE) return FALSE; + if (event->state & GDK_CONTROL_MASK) + return FALSE; + context_ime = GTK_IM_CONTEXT_IME (context); if (!context_ime->focus) @@ -971,6 +974,7 @@ gtk_im_context_ime_message_filter (GdkXEvent *xevent, { g_signal_emit_by_name (context, "commit", utf8str); g_free (utf8str); + retval = TRUE; } } |