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



commit 0ca68b3544af6170e09258c814d95d30cb1801d7
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]