[mutter] meta_display_get_keybinding_action: strip out uninteresting modifiers



commit 1abed05413e3c9849ccd1af2bba624b4033142a6
Author: Dan Winship <danw gnome org>
Date:   Thu Mar 18 17:56:20 2010 -0400

    meta_display_get_keybinding_action: strip out uninteresting modifiers
    
    That is, don't consider the state of num lock, xkb group number, etc,
    when looking up keybindings.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=613278

 src/core/keybindings.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/core/keybindings.c b/src/core/keybindings.c
index 11827f4..aeccf3c 100644
--- a/src/core/keybindings.c
+++ b/src/core/keybindings.c
@@ -517,6 +517,7 @@ meta_display_get_keybinding_action (MetaDisplay  *display,
 {
   MetaKeyBinding *binding;
 
+  mask = mask & 0xff & ~display->ignored_modifier_mask;
   binding = display_get_keybinding (display, keysym, keycode, mask);
 
   if (binding)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]