diff options
author | Owen Taylor <otaylor@redhat.com> | 2003-08-12 18:38:16 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2003-08-12 18:38:16 +0000 |
commit | 43811f5dc03567a76b16b4a8596d200547f771ab (patch) | |
tree | e23567c12fd3c662d1703ec880b782666c2fb2a5 /gtk | |
parent | f87cb63be39b2ce5c681277d03ac6c01e07f46ab (diff) | |
download | gtk+-43811f5dc03567a76b16b4a8596d200547f771ab.tar.gz |
Remove GDK_LOCK_MASK before calling gdk_keymap_translate_keyboard_state so
Tue Aug 12 14:27:42 2003 Owen Taylor <otaylor@redhat.com>
* gtk/gtkkeyhash.c (_gtk_key_hash_lookup): Remove
GDK_LOCK_MASK before calling
gdk_keymap_translate_keyboard_state so bindings
and accelerators are independent of the Caps-lock
key. (#115384, reported by Toni Willberg)
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkkeyhash.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkkeyhash.c b/gtk/gtkkeyhash.c index 604c9ccd7b..beca28d3c6 100644 --- a/gtk/gtkkeyhash.c +++ b/gtk/gtkkeyhash.c @@ -336,6 +336,10 @@ _gtk_key_hash_lookup (GtkKeyHash *key_hash, gint level; GdkModifierType consumed_modifiers; + /* We don't want Caps_Lock to affect keybinding lookups. + */ + state &= ~GDK_LOCK_MASK; + gdk_keymap_translate_keyboard_state (key_hash->keymap, hardware_keycode, state, group, &keyval, &effective_group, &level, &consumed_modifiers); |