summaryrefslogtreecommitdiff
path: root/gtk/gtkimmulticontext.c
diff options
context:
space:
mode:
authorMichael Natterer <mitch@lanedo.com>2011-09-16 16:10:06 +0200
committerMichael Natterer <mitch@gimp.org>2011-09-26 16:01:50 +0200
commit2a8be23d1717a9b48d957a7ccfce9032b1e18a64 (patch)
treecc864182ac0d42cb33fbb662192ca154d1cd5394 /gtk/gtkimmulticontext.c
parentd3df4678ca8f286e93ac6944b92b76bc79e01f90 (diff)
downloadgtk+-2a8be23d1717a9b48d957a7ccfce9032b1e18a64.tar.gz
gtk: fix entering of Option-foo symbols on the Mac
define GTK_NO_TEXT_INPUT_MOD_MASK in gtkprivate.h and use it in the IM contexts, so Option-foo is no longer filtered away.
Diffstat (limited to 'gtk/gtkimmulticontext.c')
-rw-r--r--gtk/gtkimmulticontext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkimmulticontext.c b/gtk/gtkimmulticontext.c
index ea471a8aaf..28a218d65b 100644
--- a/gtk/gtkimmulticontext.c
+++ b/gtk/gtkimmulticontext.c
@@ -350,7 +350,7 @@ gtk_im_multicontext_filter_keypress (GtkIMContext *context,
if (slave)
return gtk_im_context_filter_keypress (slave, event);
else if (event->type == GDK_KEY_PRESS &&
- (event->state & (GDK_MOD1_MASK | GDK_CONTROL_MASK)) == 0)
+ (event->state & GTK_NO_TEXT_INPUT_MOD_MASK) == 0)
{
gunichar ch;