summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2007-05-14 10:10:46 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-05-14 10:10:46 +0000
commite2f8c663e2b5bdfd1778feec8c98e98fb1b2a613 (patch)
treed491b3502055adab1b6f9b9d80cc8978d90738a7 /modules
parent8f1246b4898eb5066897e7f7e577420a9605c6ae (diff)
downloadgdk-pixbuf-e2f8c663e2b5bdfd1778feec8c98e98fb1b2a613.tar.gz
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
Diffstat (limited to 'modules')
-rw-r--r--modules/input/gtkimcontextthai.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/input/gtkimcontextthai.c b/modules/input/gtkimcontextthai.c
index b1a0c5dc4..3cc67c845 100644
--- a/modules/input/gtkimcontextthai.c
+++ b/modules/input/gtkimcontextthai.c
@@ -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