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.
This commit is contained in:
Michael Natterer
2011-09-16 16:10:06 +02:00
committed by Michael Natterer
parent d3df4678ca
commit 2a8be23d17
3 changed files with 12 additions and 2 deletions

View File

@ -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;