Fix check for modifier keys. (#438261, Theppitak Karoonboonyanan)

2007-05-14  Behdad Esfahbod  <behdad@gnome.org>

        * modules/input/gtkimcontextthai.c
        (gtk_im_context_thai_filter_keypress):
        Fix check for modifier keys. (#438261, Theppitak Karoonboonyanan)


svn path=/branches/gtk-2-10/; revision=17841
This commit is contained in:
Behdad Esfahbod
2007-05-14 10:09:58 +00:00
committed by Behdad Esfahbod
parent 1037100a22
commit 619736c843
2 changed files with 8 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
2007-05-14 Behdad Esfahbod <behdad@gnome.org>
* modules/input/gtkimcontextthai.c
(gtk_im_context_thai_filter_keypress):
Fix check for modifier keys. (#438261, Theppitak Karoonboonyanan)
2007-05-14 Matthias Clasen <mclasen@redhat.com>
Merge from trunk:

View File

@@ -288,7 +288,8 @@ gtk_im_context_thai_filter_keypress (GtkIMContext *context,
if (event->type != GDK_KEY_PRESS)
return FALSE;
if (event->state & (GDK_MODIFIER_MASK & ~GDK_SHIFT_MASK) ||
if (event->state & (GDK_MODIFIER_MASK
& ~(GDK_SHIFT_MASK | GDK_LOCK_MASK | GDK_MOD2_MASK)) ||
is_context_lost_key (event->keyval))
{
#ifndef GTK_IM_CONTEXT_THAI_NO_FALLBACK