[gnome-control-center/gnome-3-2] keyboard: Shift+unmodified key isn't good enough



commit 85f7aace2bd78b31f7e56ed56bae787aa3f53c54
Author: Bastien Nocera <hadess hadess net>
Date:   Sun Feb 19 16:12:30 2012 +0100

    keyboard: Shift+unmodified key isn't good enough
    
    And it stops upper-case unmodified (or lightly modified) keys from
    being captured and unusable for other purposes.

 panels/keyboard/keyboard-shortcuts.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/keyboard/keyboard-shortcuts.c b/panels/keyboard/keyboard-shortcuts.c
index 42f2249..f85f3e5 100644
--- a/panels/keyboard/keyboard-shortcuts.c
+++ b/panels/keyboard/keyboard-shortcuts.c
@@ -1278,7 +1278,7 @@ accel_edited_callback (GtkCellRendererText   *cell,
     }
 
   /* Check for unmodified keys */
-  if (mask == 0 && keycode != 0)
+  if ((mask == 0 || mask == GDK_SHIFT_MASK) && keycode != 0)
     {
       if ((keyval >= GDK_KEY_a && keyval <= GDK_KEY_z)
            || (keyval >= GDK_KEY_A && keyval <= GDK_KEY_Z)



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