diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2007-05-14 10:10:46 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2007-05-14 10:10:46 +0000 |
commit | e2f8c663e2b5bdfd1778feec8c98e98fb1b2a613 (patch) | |
tree | d491b3502055adab1b6f9b9d80cc8978d90738a7 /modules | |
parent | 8f1246b4898eb5066897e7f7e577420a9605c6ae (diff) | |
download | gdk-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.c | 3 |
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 |