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=/trunk/; revision=17842
This commit is contained in:
Behdad Esfahbod 2007-05-14 10:10:46 +00:00 committed by Behdad Esfahbod
parent 8f1246b489
commit e2f8c663e2
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>
* gtk/gtkscrolledwindow.c: Document scrollbars-within-bevel

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