Commit e2f8c663 authored by Behdad Esfahbod's avatar Behdad Esfahbod Committed by Behdad Esfahbod

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
parent 8f1246b4
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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment