[gnome-settings-daemon/gnome-3-0] common: Allow the "Pause" key to be used



commit 65a5ca27a24a2d5a59797d13f305b13026794fc2
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Jul 1 13:39:45 2011 +0100

    common: Allow the "Pause" key to be used
    
    That'd be the "Pause"/"PrtScreen" key, not AudioPause.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=653524

 plugins/common/gsd-keygrab.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/common/gsd-keygrab.c b/plugins/common/gsd-keygrab.c
index 304c8c2..70fde7a 100644
--- a/plugins/common/gsd-keygrab.c
+++ b/plugins/common/gsd-keygrab.c
@@ -147,7 +147,8 @@ grab_key_unsafe (Key                 *key,
          */
         if ((modifiers & gsd_used_mods) == 0 &&
             (IN_RANGE(key->keysym, XF86KEYS_RANGE_MIN, XF86KEYS_RANGE_MAX) ||
-             IN_RANGE(key->keysym, FKEYS_RANGE_MIN, FKEYS_RANGE_MAX))) {
+             IN_RANGE(key->keysym, FKEYS_RANGE_MIN, FKEYS_RANGE_MAX) ||
+             key->keysym == GDK_KEY_Pause)) {
                 GString *keycodes;
 
                 keycodes = g_string_new ("");



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