summaryrefslogtreecommitdiff
path: root/gtk/gtkkeyhash.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-02-12 15:45:16 -0500
committerMatthias Clasen <mclasen@redhat.com>2010-02-12 18:55:42 -0500
commit13d69e552dffe681ee80c0600366a8c04fc205c6 (patch)
tree0c2c6769737c211a0b5f8e36b86a752dbf4fcdc2 /gtk/gtkkeyhash.c
parent6f566057e85dc0d542f26db1d7964a774a5f88a4 (diff)
downloadgtk+-13d69e552dffe681ee80c0600366a8c04fc205c6.tar.gz
Fix a compatibility problem
It turns out that my attempt at handling Super, Hyper and Meta better is causing problems, mostly because Alt and Meta are commonly colocated in the modmap, and apps do a check for the Alt modifier regularly. See e.g bug 607697.
Diffstat (limited to 'gtk/gtkkeyhash.c')
-rw-r--r--gtk/gtkkeyhash.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkkeyhash.c b/gtk/gtkkeyhash.c
index 368699cc18..cbe0b7747c 100644
--- a/gtk/gtkkeyhash.c
+++ b/gtk/gtkkeyhash.c
@@ -404,6 +404,7 @@ _gtk_key_hash_lookup (GtkKeyHash *key_hash,
gdk_keymap_translate_keyboard_state (key_hash->keymap,
hardware_keycode, state, group,
&keyval, &effective_group, &level, &consumed_modifiers);
+ gdk_keymap_add_virtual_modifiers (key_hash->keymap, &state);
GTK_NOTE (KEYBINDINGS,
g_message ("Looking up keycode = %u, modifiers = 0x%04x,\n"