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



commit be88bc1fd3bcf95f65bba69d2350fdb1dd7060a5
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 40d3681..a39c878 100644
--- a/panels/keyboard/keyboard-shortcuts.c
+++ b/panels/keyboard/keyboard-shortcuts.c
@@ -1137,7 +1137,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]